Methods_T_Rhino_Geometry_Vector3f - mcneel/rhinocommon-api-docs GitHub Wiki

Vector3f Methods

The Vector3f type exposes the following members.

Methods

 

Name Description
Public methodStatic member Add(Point3f, Vector3f) Sums up a point and a vector, and returns a new point. (Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Public methodStatic member Add(Vector3f, Vector3f) Sums up two vectors. (Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Public method CompareTo Compares this Vector3f with another Vector3f. Component evaluation priority is first X, then Y, then Z.
Public methodStatic member CrossProduct Computes the cross product (or vector product, or exterior product) of two vectors. This operation is not commutative.
Public methodStatic member Divide(Vector3f, Double) Divides a Vector3f by a number, having the effect of shrinking it, t times. (Provided for languages that do not support operator overloading. You can use the / operator otherwise)
Public methodStatic member Divide(Vector3f, Single) Divides a Vector3f by a number, having the effect of shrinking it, t times. (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 withing epsilon of the values in this
Public method Equals(Object) Determines whether the specified System.Object is a Vector3f and has the same values as the present vector. (Overrides ValueType.Equals(Object).)
Public method Equals(Vector3f) Determines whether the specified vector has the same values as the present vector.
Public method GetHashCode Computes a hash number that represents the current vector. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member Multiply(Single, Vector3f) 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(Vector3f, Vector3f) Multiplies two Vector3f together, returning the dot (internal) product of the two. This is not the cross product. (Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Public methodStatic member Multiply(Vector3f, Single) 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 method PerpendicularTo Sets this vector to be perpendicular to another vector. Result is not unitized.
Public method Reverse Reverses this vector in place (reverses the direction). If this vector contains RhinoMath.UnsetValue, the reverse will also be invalid and false will be returned.
Public method Rotate Rotates this vector around a given axis.
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 the string representation of the current vector. (Overrides ValueType.ToString().)
Public method Transform Transforms the vector in place. The transformation matrix acts on the left of the vector; i.e.,

result = transformation*vector

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

Vector3f Structure
Rhino.Geometry Namespace

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