Point2d Structure |
Namespace: Rhino.Geometry
The Point2d type exposes the following members.
Name | Description | |
---|---|---|
Point2d(Point2d) |
Initializes a new instance of Point2d by copying another Point2d.
| |
Point2d(Point3d) | ||
Point2d(Vector2d) |
Initializes a new instance of Point2d by converting a vector.
| |
Point2d(Double, Double) |
Initializes a new instance of Point2d from coordinates.
|
Name | Description | |
---|---|---|
IsValid |
If any coordinate of a point is UnsetValue, then the point is not valid.
| |
Item |
Accesses the coordinates of this point.
| |
MaximumCoordinate |
Gets the largest valid coordinate, or RhinoMath.UnsetValue if no coordinate is valid.
| |
MinimumCoordinate |
Gets the smallest (both positive and negative) valid coordinate, or RhinoMath.UnsetValue if no coordinate is valid.
| |
Origin |
Gets a point at 0,0.
| |
Unset |
Gets a point at RhinoMath.UnsetValue,RhinoMath.UnsetValue.
| |
X |
Gets or sets the X (first) coordinate of the point.
| |
Y |
Gets or sets the Y (second) coordinate of the point.
|
Name | Description | |
---|---|---|
Add(Point2d, Point2d) |
Adds a point with a point.
(Provided for languages that do not support operator overloading. You can use the + operator otherwise) | |
Add(Point2d, Vector2d) |
Adds a point with a vector.
(Provided for languages that do not support operator overloading. You can use the + operator otherwise) | |
Add(Vector2d, Point2d) |
Adds a vector with a point.
(Provided for languages that do not support operator overloading. You can use the + operator otherwise) | |
CompareTo |
Compares this Point2d with another Point2d.
Coordinates evaluation priority is first X, then Y. | |
DistanceTo |
Computes the distance between two points.
| |
DistanceToSquared |
Computes the square of the distance between two 2d points.
This method is usually largely faster than DistanceTo(). | |
Divide |
Divides a Point2d by a number.
(Provided for languages that do not support operator overloading. You can use the / operator otherwise) | |
EpsilonEquals |
Check that all values in other are within epsilon of the values in this
| |
Equals(Object) |
Determines whether the specified System.Object is a Point2d and has the same values as the present point.
(Overrides ValueTypeEquals(Object).) | |
Equals(Point2d) |
Determines whether the specified Point2d has the same values as the present point.
| |
GetHashCode |
Computes a hash number that represents the current point.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Multiply(Double, Point2d) |
Multiplies a Point2d by a number.
(Provided for languages that do not support operator overloading. You can use the * operator otherwise) | |
Multiply(Point2d, Double) |
Multiplies a Point2d by a number.
(Provided for languages that do not support operator overloading. You can use the * operator otherwise) | |
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) | |
Subtract(Point2d, Vector2d) |
Subtracts a vector from a point.
(Provided for languages that do not support operator overloading. You can use the - operator otherwise) | |
ToString |
Constructs the string representation for the current point.
(Overrides ValueTypeToString.) | |
ToString(String, IFormatProvider) | Formats the value of the current instance using the specified format. | |
Transform |
Transforms the present point in place. The transformation matrix acts on the left of the point. i.e.,
result = transformation*point |
Name | Description | |
---|---|---|
Addition(Point2d, Point2d) |
Adds a point with a point.
| |
Addition(Point2d, Vector2d) |
Adds a point with a vector.
| |
Addition(Vector2d, Point2d) |
Adds a vector with a point.
| |
Division |
Divides a Point2d by a number.
| |
Equality |
Determines whether two Point2d have equal values.
| |
GreaterThan |
Determines whether the first specified Point2d comes after
(has superior sorting value than) the second point.
Coordinates evaluation priority is first X, then Y. | |
GreaterThanOrEqual |
Determines whether the first specified Point2d comes after
(has superior sorting value than) the second point, or it is equal to it.
Coordinates evaluation priority is first X, then Y. | |
Inequality |
Determines whether two Point2d have different values.
| |
LessThan |
Determines whether the first specified point comes before (has inferior sorting value than) the second point.
Coordinates evaluation priority is first X, then Y. | |
LessThanOrEqual |
Determines whether the first specified point comes before
(has inferior sorting value than) the second point, or it is equal to it.
Coordinates evaluation priority is first X, then Y. | |
Multiply(Double, Point2d) |
Multiplies a Point2d by a number.
| |
Multiply(Point2d, Double) |
Multiplies a Point2d by a number.
| |
Subtraction(Point2d, Point2d) |
Subtracts point2 from point1.
| |
Subtraction(Point2d, Vector2d) |
Subtracts a vector from a point.
|