Click or drag to resize

Vector3dCrossProduct Method

Computes the cross product (or vector product, or exterior product) of two vectors.

This operation is not commutative.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
public static Vector3d CrossProduct(
	Vector3d a,
	Vector3d b


Type: Rhino.GeometryVector3d
First vector.
Type: Rhino.GeometryVector3d
Second vector.

Return Value

Type: Vector3d
A new vector that is perpendicular to both a and b,

has Length == a.Length * b.Length * sin(theta) where theta is the angle between a and b.

The resulting vector is oriented according to the right hand rule.

See Also