Point Structure

Represent a point in a two-dimensional plane.

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
[SerializableAttribute]
public struct Point
Inheritance
Object  →  ValueType  →  Point

Constructors

Point Constructs a new point with the specified coordinates.

Properties

X Gets the X-coordinate of the point.
Y Gets the Y-coordinate of the point.

Methods

Add Returns a Point whose coordinates are the sum of the respective coordinates of two other points.
Distance Returns the Euclidean distance between two points.
Equals Overridden. Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueType.Equals(Object))
FromIntersection Returns a Point that is the intersection of two lines.
GetHashCode Overridden. Returns the hash code for this instance.
(Overrides ValueType.GetHashCode())
GetTypeGets the Type of the current instance.
(Inherited from Object)
ManhattanDistance Returns the "Manhattan distance" between two points.
Subtract Returns a Point whose coordinates are the differences between the respective coordinates of two other points.
ToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)

Operators

Addition(Point, Point) Returns a Point whose coordinates are the sum of the respective coordinates of two other points.
Equality(Point, Point) Compares two Point structures for equality.
Inequality(Point, Point) Compares two Point structures for inequality.
Subtraction(Point, Point) Returns a Point whose coordinates are the differences between the respective coordinates of two other points.

See Also