Point |
[SerializableAttribute] public struct PointD2D
The PointD2D type exposes the following members.
| Name | Description | |
|---|---|---|
| Empty | Gets an empty point (0,0). | |
| IsEmpty | Gets a value indicating whether this point is empty (both components are zero). | |
| IsNaN | Gets a value indicating whether one of the members of this instance is NaN. | |
| VectorLength | Gets the vector length of this point. | |
| VectorLengthSquared | Gets the squared vector length of this point. | |
| X | Gets the x component of this point. | |
| Y | Gets the y component of this point. |
| Name | Description | |
|---|---|---|
| Deconstruct | Deconstructs this point into its x and y components. | |
| Distance | Calculates the distance between two points. | |
| DistanceSquared | Calculates the squared distance between two points. | |
| DistanceSquaredTo | Calculates the squared distance between this point and another point. | |
| DistanceTo | Calculates the distance between this point and another point. | |
| DotProduct(PointD2D) | Calculates the dot product of this point and another point. | |
| DotProduct(PointD2D, PointD2D) | Calculates the dot product of two points. | |
| Equals | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object)) | |
| Get90DegreeRotated | Gets a new point rotated by 90 degrees counterclockwise. | |
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) | |
| GetMemberwiseAbs | Gets a new point with both components replaced by their absolute values. | |
| GetNormalized | Gets a normalized version of this point (length 1). | |
| GetRotatedByDegree(Double) | Gets a new point rotated by a specified angle in degrees around the origin. | |
| GetRotatedByDegree(Double, PointD2D) | Gets a new point rotated by a specified angle in degrees around a pivot. | |
| GetRotatedByRad(Double) | Gets a new point rotated by a specified angle in radians around the origin. | |
| GetRotatedByRad(Double, PointD2D) | Gets a new point rotated by a specified angle in radians around a pivot. | |
| GetSignFlipped | Gets a new point with both components sign-flipped. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| GetXYFlipped | Gets a new point with x and y components flipped. | |
| IsPointIntoDistance | Determines whether or not a given point (point) is into a distance to a finite line, that is spanned between two points lineOrg and lineEnd. | |
| SquareDistanceLineToPoint | Calculates the squared distance between a finite line and a point. | |
| ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) | |
| WithX | Returns a new instance with X set to the provided value. | |
| WithXPlus | Returns a new instance with X set to the X plus the provided value. | |
| WithY | Returns a new instance with Y set to the provided value. | |
| WithYPlus | Returns a new instance with Y set to the Y plus the provided value. |
| Name | Description | |
|---|---|---|
| Addition(PointD2D, PointD2D) | Adds two points component-wise. | |
| Addition(PointD2D, VectorD2D) | Adds a vector to a point component-wise. | |
| Division(PointD2D, Double) | Divides a point by a scalar. | |
| Equality(PointD2D, PointD2D) | Checks if two points are equal. | |
| (VectorD2D to PointD2D) | Converts a VectorD2D to a PointD2D. | |
| Inequality(PointD2D, PointD2D) | Checks if two points are not equal. | |
| Multiply(Double, PointD2D) | Multiplies a scalar by a point. | |
| Multiply(PointD2D, PointD2D) | Multiplies two points component-wise. | |
| Multiply(PointD2D, Double) | Multiplies a point by a scalar. | |
| Subtraction(PointD2D, PointD2D) | Subtracts two points component-wise. | |
| Subtraction(PointD2D, VectorD2D) | Subtracts a vector from a point component-wise. |
| Name | Description | |
|---|---|---|
| ToGdi | (Defined by GeometryToSystemDrawingConversions) | |
| ToGdiSize | (Defined by GeometryToSystemDrawingConversions) |