Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cross() function exists in OpenSCAD core language #6

Open
clothbot opened this issue Nov 11, 2017 · 0 comments
Open

cross() function exists in OpenSCAD core language #6

clothbot opened this issue Nov 11, 2017 · 0 comments

Comments

@clothbot
Copy link

Hi Oskar,

I don't remember when exactly cross() was added into OpenSCAD - it's been several years since my initial add of linear algebra support and Marius' full re-write - but it makes this (re)definition obsolete:

function cross(x,y) = [x[1]*y[2]-x[2]*y[1], x[2]*y[0]-x[0]*y[2], x[0]*y[1]-x[1]*y[0]];

See docs: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_Language#cross

Andrew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant