CRaPI - Correct Robust and Perfect API

Point2D Members

Point2D overview

Public Static Methods

Distance Calculates the distance between two points

Public Static Operators

Equality OperatorChecks if two Point2D are equal
Inequality OperatorChecks if two Point2D are inequal
Subtraction Operator Calculates the distance between two points

Public Instance Constructors

Point2DOverloaded. Initializes a new instance of the Point2D class.

Public Instance Properties

XThe X-coordinate of the point
YThe Y-coordinate of the point

Public Instance Methods

AngleToThe angle from this point to another point
EqualsChecks if this point have the same coordinate as a second point
GetHashCodeThe hash code of this object
GetType (inherited from Object)Gets the Type of the current instance.
MidwayTo Calculates the position on the middle of the imagined line between two points.
SetLocationSets the location of this Point2D to the location supplied.
SignedXDistanceToThe x distance to a point
SignedYDistanceToThe y distance to a point
ToPoint Creates a Point from this Point2D.
ToStringA string representation of the point.
XDistanceToThe absolute value of the x distance to a point
YDistanceToThe absolute value of the y distance to a point

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

Point2D Class | TeamYaffa.CRaPI.Utility Namespace