fromCrossProduct
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));
Content copied to clipboard
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.