M_Rhino_Geometry_Vector3d_CrossProduct - mcneel/rhinocommon-api-docs GitHub Wiki

Vector3d.CrossProduct 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) Version: Rhino 6.0

Syntax

C#

public static Vector3d CrossProduct(
	Vector3d a,
	Vector3d b
)

VB

Public Shared Function CrossProduct ( 
	a As Vector3d,
	b As Vector3d
) As Vector3d

Parameters

 

a
Type: Rhino.Geometry.Vector3d
First vector.
b
Type: Rhino.Geometry.Vector3d
Second vector.

Return Value

Type: Vector3d
A new vector that is perpendicular to both a and b, has Length == a.Length * b.Length and

with a result that is oriented following the right hand rule.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Vector3d Structure
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️