Namespace: PdfSharp.Drawing
Represents a pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
public struct XPoint
Inheritance Object → ValueType → XPoint
Implements IFormattable
Gets the x-coordinate of this XPoint.
public double X { get; set; }
Gets the x-coordinate of this XPoint.
public double Y { get; set; }
Initializes a new instance of the XPoint class with the specified coordinates.
XPoint(double x, double y)
x
Double
y
Double
Indicates whether the specified points are equal.
bool Equals(XPoint point1, XPoint point2)
point1
XPoint
point2
XPoint
Indicates whether this instance and a specified object are equal.
bool Equals(object o)
o
Object
Indicates whether this instance and a specified point are equal.
bool Equals(XPoint value)
value
XPoint
Returns the hash code for this instance.
int GetHashCode()
Parses the point from a string.
XPoint Parse(string source)
source
String
Parses an array of points from a string.
XPoint[] ParsePoints(string value)
value
String
Converts this XPoint to a human readable string.
string ToString()
Converts this XPoint to a human readable string.
string ToString(IFormatProvider provider)
provider
IFormatProvider
Implements ToString.
string ConvertToString(string format, IFormatProvider provider)
format
String
provider
IFormatProvider
Offsets the x and y value of this point.
void Offset(double offsetX, double offsetY)
offsetX
Double
offsetY
Double
Adds a point and a vector.
XPoint Add(XPoint point, XVector vector)
point
XPoint
vector
XVector
Subtracts a vector from a point.
XPoint Subtract(XPoint point, XVector vector)
point
XPoint
vector
XVector
Subtracts a point from a point.
XVector Subtract(XPoint point1, XPoint point2)
point1
XPoint
point2
XPoint
Multiplies a point with a matrix.
XPoint Multiply(XPoint point, XMatrix matrix)
point
XPoint
matrix
XMatrix