Class PointF
A point with a float X and Y.
public class PointF
- Inheritance
-
PointF
- Inherited Members
Constructors
PointF()
Initializes a new instance of the PointF class.
public PointF()
PointF(float, float)
Initializes a new instance of the PointF class.
public PointF(float x, float y)
Parameters
Fields
Empty
An empty point.
public static readonly PointF Empty
Field Value
Properties
X
Gets or sets the X coordinate.
public float X { get; set; }
Property Value
- float
The x value.
Y
Gets or sets the Y coordinate.
public float Y { get; set; }
Property Value
- float
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.