Struct XPoint
Represents a pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
[Serializable]
public struct XPoint
Constructors
- XPoint(double, double)
Initializes a new instance of the XPoint class with the specified coordinates.
Properties
- X
Gets the x-coordinate of this XPoint.
- Y
Gets the x-coordinate of this XPoint.
Methods
- Add(XPoint, XVector)
Adds a point and a vector.
- Equals(XPoint)
Indicates whether this instance and a specified point are equal.
- Equals(XPoint, XPoint)
Indicates whether the specified points are equal.
- Equals(object?)
Indicates whether this instance and a specified object are equal.
- GetHashCode()
Returns the hash code for this instance.
- Multiply(XPoint, XMatrix)
Multiplies a point with a matrix.
- Offset(double, double)
Offsets the x and y value of this point.
- Parse(string)
Parses the point from a string.
- ParsePoints(string)
Parses an array of points from a string.
- Subtract(XPoint, XPoint)
Subtracts a point from a point.
- Subtract(XPoint, XVector)
Subtracts a vector from a point.
- ToString()
Converts this XPoint to a human-readable string.
- ToString(IFormatProvider)
Converts this XPoint to a human-readable string.
Operators
- operator +(XPoint, XSize)
Adds a point and a size.
- operator +(XPoint, XVector)
Adds a point and a vector.
- operator ==(XPoint, XPoint)
Determines whether two points are equal.
- explicit operator XSize(XPoint)
Performs an explicit conversion from XPoint to XSize.
- explicit operator XVector(XPoint)
Performs an explicit conversion from XPoint to XVector.
- operator !=(XPoint, XPoint)
Determines whether two points are not equal.
- operator *(XPoint, XMatrix)
Multiplies a point with a matrix.
- operator *(XPoint, double)
Multiplies a point with a scalar value.
- operator *(double, XPoint)
Multiplies a point with a scalar value.
- operator -(XPoint, XPoint)
Subtracts a point from a point.
- operator -(XPoint, XSize)
Subtracts a size from a point.
- operator -(XPoint, XVector)
Subtracts a vector from a point.