cross

function

cross(_vector)

Description

Returns the cross product of this vector and the specified vector.

Arguments

Name Type Description
_vector vec3 The vector to compute the cross product with.

Returns

vec3 The cross product.

Example

vec1 = new Vec3(10, 10, 10);
vec2 = new Vec3(5, 5, 5);
show_debug_message(vec1.cross(vec2)); // Result: { x : 0, y : 0, z : 0 }

Copyright © 2020, eL-Falso. Built on December 14, 2020 using GMDoc.