Methods_T_Rhino_Geometry_Vector2d - mcneel/rhinocommon-api-docs GitHub Wiki

Vector2d Methods

The Vector2d type exposes the following members.

Methods

 

Name Description
Public methodStatic member Add Sums up two vectors. (Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Public method CompareTo Compares this Vector2d with another Vector2d. Components evaluation priority is first X, then Y.
Public methodStatic member Divide Divides a Vector2d 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 method EpsilonEquals Check that all values in other are within epsilon of the values in this
Public method Equals(Object) Determines whether the specified System.Object is a Vector2d and has the same value as the present vector. (Overrides ValueType.Equals(Object).)
Public method Equals(Vector2d) Determines whether the specified vector has the same value as the present vector.
Public method GetHashCode Provides a hashing value for the present vector. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsTiny() Uses RhinoMath.ZeroTolerance for IsTiny calculation.
Public methodCode example IsTiny(Double) Determines whether a vector is very short.
Public methodStatic member Multiply(Double, Vector2d) 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 member Multiply(Vector2d, Vector2d) Multiplies two vectors together, returning the dot product (or inner product). (Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Public methodStatic member Multiply(Vector2d, 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 member Negate Computes the reversed vector. (Provided for languages that do not support operator overloading. You can use the - unary operator otherwise)
Public methodStatic member Subtract Subtracts the second vector from the first one. (Provided for languages that do not support operator overloading. You can use the - operator otherwise)
Public method ToString Constructs a string representation of the current vector. (Overrides ValueType.ToString().)
Public method Unitize Unitizes the vector in place. A unit vector has length 1 unit. An invalid or zero length vector cannot be unitized.
  Back to Top

See Also

Reference

Vector2d Structure
Rhino.Geometry Namespace

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