Vector.cross
From GiderosMobile
Revision as of 14:35, 1 February 2026 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2026.1<br/> '''Class:''' vector library<br/> === Description === Computes the cross product of two vectors. <syntaxhighlight lang...")
Available since: Gideros 2026.1
Class: vector library
Description
Computes the cross product of two vectors.
(vector) = vector.cross(vec1,vec2)
Parameters
vec1: (vector) the first vector
vec2: (vector) the second vector
Return values
Returns (vector) returns the 3-dimensional cross product
Example
local vec1 : vector = vector.create(1, 2, 3)
local vec2 : vector = vector.create(1, 1)
local cp : vector = vector.cross(vec1,vec2)
print(cp)