Click or drag to resize
Vector3d Methods

The Vector3d type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAdd
Sums up two vectors.

(Provided for languages that do not support operator overloading. You can use the + operator otherwise)

Public methodCompareTo
Compares this Vector3d with another Vector3d.

Component evaluation priority is first X, then Y, then Z.

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

This operation is not commutative.

Public methodStatic memberDivide
Divides a Vector3d by a number, having the effect of shrinking it.

(Provided for languages that do not support operator overloading. You can use the / operator otherwise)

Public methodEpsilonEquals
Check that all values in other are within epsilon of the values in this
Public methodEquals(Object)
Determines whether the specified System.Object is a Vector3d and has the same values as the present vector.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector3d)
Determines whether the specified vector has the same value as the present vector.
Public methodGetHashCode
Computes the hash code for the current vector.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleIsParallelTo(Vector3d)
Determines whether this vector is parallel to another vector, within one degree (within Pi / 180).
Public methodIsParallelTo(Vector3d, Double)
Determines whether this vector is parallel to another vector, within a provided tolerance.
Public methodIsPerpendicularTo(Vector3d)
Test to see whether this vector is perpendicular to within one degree of another one.
Public methodIsPerpendicularTo(Vector3d, Double)
Determines whether this vector is perpendicular to another vector, within a provided angle tolerance.
Public methodIsTiny
Uses RhinoMath.ZeroTolerance for IsTiny calculation.
Public methodCode exampleIsTiny(Double)
Determines whether a vector is very short.
Public methodStatic memberMultiply(Double, Vector3d)
Multiplies a vector by a number, having the effect of scaling it.

(Provided for languages that do not support operator overloading. You can use the * operator otherwise)

Public methodStatic memberMultiply(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)

Public methodStatic memberMultiply(Vector3d, Double)
Multiplies a vector by a number, having the effect of scaling it.

(Provided for languages that do not support operator overloading. You can use the * operator otherwise)

Public methodStatic memberNegate
Computes the opposite vector.

(Provided for languages that do not support operator overloading. You can use the - unary operator otherwise)

Public methodPerpendicularTo
Sets this vector to be perpendicular to another vector. Result is not unitized.
Public methodReverse
Reverses (inverts) this vector in place.

If this vector is Invalid, no changes will occur and false will be returned.

Public methodRotate
Rotates this vector around a given axis.
Public methodStatic memberSubtract
Subtracts the second vector from the first one.

(Provided for languages that do not support operator overloading. You can use the - operator otherwise)

Public methodToString
Returns the string representation of the current vector, in the form X,Y,Z.
(Overrides ValueTypeToString.)
Public methodTransform
Transforms the vector in place.

The transformation matrix acts on the left of the vector; i.e.,

result = transformation*vector

Public methodUnitize
Unitizes the vector in place. A unit vector has length 1 unit.

An invalid or zero length vector cannot be unitized.

Public methodStatic memberVectorAngle(Vector3d, Vector3d)
Compute the angle between two vectors.

This operation is commutative.

Public methodStatic memberVectorAngle(Vector3d, Vector3d, Plane)
Computes the angle on a plane between two vectors.
Top
See Also