cross_product


Description:

public Vector3 cross_product (Vector3 vector2)

Compute the cross product of two vectors.

The result is a Vector3 which is orthogonal to both this and vector2. If this and vector2 and parallel, the result will be the nul vector.

This function can be used to compute the normal of the plane defined by this and vector2.

Parameters:

this

a pointer to the first Vector3.

vector2

a pointer to the second Vector3.

Returns:

The cross product.