Point |
[SerializableAttribute] public struct Point2D
The Point2D type exposes the following members.
Name | Description | |
---|---|---|
![]() | Dimensions | Equals 2. |
![]() | Item | Gets or sets the coordinate of the axis specified by index. |
![]() | Magnitude | Returns the distance between this point and the zero point. |
![]() | X | The X-coordinate. |
![]() | Y | The Y-coordinate. |
Name | Description | |
---|---|---|
![]() | Equals(Object) |
Specifies whether this point contains the same coordinates as the specified object.
(Overrides ValueTypeEquals(Object)) |
![]() | Equals(Point2D) | Specifies whether this point contains the same coordinates as the specified point. |
![]() ![]() | FromString | Converts this point from a culture-invariant human-readable string, to the equivalent binary representation. |
![]() | GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) |
![]() ![]() | ToAxisString | Returns a label of the specified axis. |
![]() | ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) |
![]() | ToString(Int32) | Converts this point in a human-readable format showing its coordinates with the specified number of decimal digits, using a culture invariant representation. |
Name | Description | |
---|---|---|
![]() ![]() | Addition(Double, Point2D) | Adds a scalar to all the coordinates of a point, and returns a new point. |
![]() ![]() | Addition(Point2D, Point2D) | Adds the coordinates of two points, and returns the result as a new point. |
![]() ![]() | Addition(Point2D, Double) | Adds a scalar to all the coordinates of a point, and returns the result as a new point. |
![]() ![]() | Division(Point2D, Double) | Divides all the coordinates of a point with a scalar, and returns the result as a new point. |
![]() ![]() | Equality(Point2D, Point2D) | Compares two points with each other, and returns true if all coordinates are equal. |
![]() ![]() | Inequality(Point2D, Point2D) | Compares two points with each other, and returns true if at least one pair of coordinates are different. |
![]() ![]() | Multiply(Double, Point2D) | Multiplies all the coordinates of a point with a scalar, and returns the result as a new point. |
![]() ![]() | Multiply(Point2D, Double) | Multiplies all the coordinates of a point with a scalar, and returns the result as a new point. |
![]() ![]() | Subtraction(Double, Point2D) | Subtracts all the coordinates of a point from a scalar, and returns the result as a new point. |
![]() ![]() | Subtraction(Point2D, Point2D) | Subtracts the coordinates of two points, and returns the result as a new point. |
![]() ![]() | Subtraction(Point2D, Double) | Subtracts a scalar from all the coordinates of a point, and returns the result as a new point. |