Class Point
Point with an X and Y position.
public class Point
- Inheritance
-
Point
- Inherited Members
Constructors
Point(double, double)
Initializes a new instance of the Point class.
public Point(double x, double y)
Parameters
Fields
Empty
The empty point.
public static readonly Point Empty
Field Value
Properties
X
Gets the X coordinate.
public double X { get; }
Property Value
- double
The x value.
Y
Gets the Y coordinate.
public double Y { get; }
Property Value
- double
The y value.
Methods
Equals(object?)
Determines whether the specified object, is equal to this instance.
public override bool Equals(object? obj)
Parameters
Returns
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
IsEmpty()
Determines whether this point is an empty point.
public bool IsEmpty()
Returns
- bool
If the point is empty.
Offset(double, double)
Create a new point that's an offset from this point.
public Point Offset(double dx, double dy)
Parameters
Returns
- Point
The offset point.