cross

fun cross(vector: Vec3): Vec3

Computes the cross product of this vector and a specified vector, modifying this vector.

Return

this vector set to the cross product of itself and the specified vector

Parameters

vector

the vector to cross with this vector


fun cross(a: Vec3, b: Vec3): Vec3

Computes the cross product of two vectors, setting this vector to the result.

Return

this vector set to the cross product of the two specified vectors

Parameters

a

the first vector

b

the second vector