RhinoCommon API
Vector3dMultiply Method (Vector3d, Vector3d) |
Multiplies two vectors together, returning the dot product (or inner product).
This differs from the cross product.
(Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 5.0
public static double Multiply( Vector3d vector1, Vector3d vector2 )
Public Shared Function Multiply ( vector1 As Vector3d, vector2 As Vector3d ) As Double
Parameters
- vector1
- Type: Rhino.GeometryVector3d
A vector. - vector2
- Type: Rhino.GeometryVector3d
A second vector.
Return Value
Type: DoubleA value that results from the evaluation of v1.X*v2.X + v1.Y*v2.Y + v1.Z*v2.Z.
This value equals v1.Length * v2.Length * cos(alpha), where alpha is the angle between vectors.