Methods_T_Rhino_Geometry_Point2d - mcneel/rhinocommon-api-docs GitHub Wiki

Point2d Methods

The Point2d type exposes the following members.

Methods

 

Name Description
Public methodStatic member Add(Point2d, Point2d) Adds a point with a point. (Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Public methodStatic member Add(Point2d, Vector2d) Adds a point with a vector. (Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Public methodStatic member Add(Vector2d, Point2d) Adds a vector with a point. (Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Public method CompareTo Compares this Point2d with another Point2d. Coordinates evaluation priority is first X, then Y.
Public methodCode example DistanceTo Computes the distance between two points.
Public methodStatic member Divide Divides a Point2d by a number. (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 Point2d and has the same values as the present point. (Overrides ValueType.Equals(Object).)
Public method Equals(Point2d) Determines whether the specified Point2d has the same values as the present point.
Public method GetHashCode Computes a hash number that represents the current point. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member Multiply(Double, Point2d) Multiplies a Point2d by a number. (Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Public methodStatic member Multiply(Point2d, Double) Multiplies a Point2d by a number. (Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Public methodStatic member Subtract(Point2d, Point2d) Subtracts the second point from the first point. (Provided for languages that do not support operator overloading. You can use the - operator otherwise)
Public methodStatic member Subtract(Point2d, Vector2d) Subtracts a vector from a point. (Provided for languages that do not support operator overloading. You can use the - operator otherwise)
Public method ToString Constructs the string representation for the current point. (Overrides ValueType.ToString().)
Public method Transform Transforms the present point in place. The transformation matrix acts on the left of the point. i.e., result = transformation*point
  Back to Top

See Also

Reference

Point2d Structure
Rhino.Geometry Namespace

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