fromCrossProduct

fun fromCrossProduct(vector: Cartesian3, result: Matrix3? = definedExternally): Matrix3(source)

Computes a Matrix3 instance representing the cross product equivalent matrix of a Cartesian3 vector.

// Creates
// [0.0, -9.0, 8.0]
// [9.0, 0.0, -7.0]
// [-8.0, 7.0, 0.0]
const m = Matrix3.fromCrossProduct(new Cartesian3(7.0, 8.0, 9.0));

Return

The modified result parameter, or a new Matrix3 instance if one was not provided.

Parameters

vector

the vector on the left hand side of the cross product operation.

result

The object in which the result will be stored, if undefined a new instance will be created.

See also