The Point type exposes the following members.

Constructors

  NameDescription
Point
Initializes a new instance of the Point structure.

Methods

  NameDescription
AddOverloaded.
DistanceTo
Calculate Euclidean distance between two points.
Divide
Division operator - divides coordinates of the specified point by scalar value.
Equals
Check if this instance of Point equal to the specified one.
(Overrides ValueType..::.Equals(Object).)
EuclideanNorm
Calculate Euclidean norm of the vector comprised of the point's coordinates - distance from (0, 0) in other words.
GetHashCode
Get hash code for this instance.
(Overrides ValueType..::.GetHashCode()()().)
Multiply
Multiplication operator - multiplies coordinates of the specified point by scalar value.
Round
Rounds the single precision point.
SquaredDistanceTo
Calculate squared Euclidean distance between two points.
SubtractOverloaded.
ToString
Get string representation of the class.
(Overrides ValueType..::.ToString()()().)

Operators

  NameDescription
AdditionOverloaded.
Division
Division operator - divides coordinates of the specified point by scalar value.
Equality
Equality operator - checks if two points have equal coordinates.
Explicit
Explicit conversion to IntPoint.
Implicit
Implicit conversion to DoublePoint.
Inequality
Inequality operator - checks if two points have different coordinates.
Multiply
Multiplication operator - multiplies coordinates of the specified point by scalar value.
SubtractionOverloaded.

Fields

  NameDescription
X
X coordinate.
Y
Y coordinate.

See Also