Difference between revisions of "VectorA:cross"
From ComputerCraft Wiki
(Changing float to number) |
|||
(5 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
|name=vector:cross | |name=vector:cross | ||
|args=[[vector (API)|vector]] vect | |args=[[vector (API)|vector]] vect | ||
− | |returns= | + | |returns={{type|number}} |
|api=vector | |api=vector | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
Line 38: | Line 38: | ||
}} | }} | ||
− | + | It is important to note that a:cross(b) will not usually equal b:cross(a). | |
− | + | More information about cross products can be found at [http://en.wikipedia.org/wiki/Cross_product] | |
− | + | [[Category:API_Functions]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 13:20, 18 July 2013
Function vector:cross | |
Returns the vector which resulted in the cross product of the two vectors. | |
Syntax | vector:cross(vector vect) |
Returns | number |
Part of | ComputerCraft |
API | vector |
Examples
It is important to note that a:cross(b) will not usually equal b:cross(a).
More information about cross products can be found at [1]