Click or drag to resize

PointD2D Methods

The PointD2D type exposes the following members.

Methods
 NameDescription
Public methodDeconstruct Deconstructs this point into its x and y components.
Public methodStatic memberDistance Calculates the distance between two points.
Public methodStatic memberDistanceSquared Calculates the squared distance between two points.
Public methodDistanceSquaredTo Calculates the squared distance between this point and another point.
Public methodDistanceTo Calculates the distance between this point and another point.
Public methodDotProduct(PointD2D) Calculates the dot product of this point and another point.
Public methodStatic memberDotProduct(PointD2D, PointD2D) Calculates the dot product of two points.
Public methodEqualsIndicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodGet90DegreeRotated Gets a new point rotated by 90 degrees counterclockwise.
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetMemberwiseAbs Gets a new point with both components replaced by their absolute values.
Public methodGetNormalized Gets a normalized version of this point (length 1).
Public methodGetRotatedByDegree(Double) Gets a new point rotated by a specified angle in degrees around the origin.
Public methodGetRotatedByDegree(Double, PointD2D) Gets a new point rotated by a specified angle in degrees around a pivot.
Public methodGetRotatedByRad(Double) Gets a new point rotated by a specified angle in radians around the origin.
Public methodGetRotatedByRad(Double, PointD2D) Gets a new point rotated by a specified angle in radians around a pivot.
Public methodGetSignFlipped Gets a new point with both components sign-flipped.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetXYFlipped Gets a new point with x and y components flipped.
Public methodStatic memberIsPointIntoDistance 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.
Public methodStatic memberSquareDistanceLineToPoint Calculates the squared distance between a finite line and a point.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodWithX Returns a new instance with X set to the provided value.
Public methodWithXPlus Returns a new instance with X set to the X plus the provided value.
Public methodWithY Returns a new instance with Y set to the provided value.
Public methodWithYPlus Returns a new instance with Y set to the Y plus the provided value.
Top
Extension Methods
See Also