41 public override bool Equals(
object? obj)
48 if (ReferenceEquals(
this, obj))
68 return X !=
null &&
X.Equals(other.
X) &&
Y !=
null &&
Y.Equals(other.
Y);
76 return (
X,
Y).GetHashCode();
85 return Formatting.Invariant($
"{GetType().Name}{{ {nameof(X)} = {X}, {nameof(Y)} = {Y} }}");
Represents a 2D point with generic coordinates.
override int GetHashCode()
Returns a hash code for the current point.
override bool Equals(object? obj)
Determines whether the specified object is equal to the current PointT<T>.
PointT(T x, T y)
Initializes a new instance of the PointT<T> class with specified coordinates.
override string ToString()
Converts the PointT<T> to a string representation.
T Y
Gets the Y coordinate of the point.
T X
Gets the X coordinate of the point.
Represents a 2D point with floating-point coordinates.
PointF(float x, float y)
Initializes a new instance of the PointF class with specified floating-point coordinates.
PointF()
Initializes a new instance of the PointF class with default coordinates (0.0f, 0.0f).
Represents a 2D point with integer coordinates.
Point(int x, int y)
Initializes a new instance of the Point class with specified integer coordinates.
Point()
Initializes a new instance of the Point class with default coordinates (0, 0).
Represents a 2D point with unsigned integer coordinates.
PointU(uint x, uint y)
Initializes a new instance of the PointU class with specified integer coordinates.
PointU()
Initializes a new instance of the PointU class with default coordinates (0, 0).
Represents a 2D vector with floating-point values.
VectorF()
Initializes a new instance of the VectorF class with default coordinates (0.0f, 0....
VectorF(float x, float y)
Initializes a new instance of the VectorF class with specified floating-point coordinates.