PDFsharp-net6

XPoint

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 ObjectValueTypeXPoint
Implements IFormattable

Properties

X

Gets the x-coordinate of this XPoint.

public double X { get; set; }

Property Value

Double

Y

Gets the x-coordinate of this XPoint.

public double Y { get; set; }

Property Value

Double

Constructors

XPoint(Double, Double)

Initializes a new instance of the XPoint class with the specified coordinates.

XPoint(double x, double y)

Parameters

x Double

y Double

Methods

Equals(XPoint, XPoint)

Indicates whether the specified points are equal.

bool Equals(XPoint point1, XPoint point2)

Parameters

point1 XPoint

point2 XPoint

Returns

Boolean

Equals(Object)

Indicates whether this instance and a specified object are equal.

bool Equals(object o)

Parameters

o Object

Returns

Boolean

Equals(XPoint)

Indicates whether this instance and a specified point are equal.

bool Equals(XPoint value)

Parameters

value XPoint

Returns

Boolean

GetHashCode()

Returns the hash code for this instance.

int GetHashCode()

Returns

Int32

Parse(String)

Parses the point from a string.

XPoint Parse(string source)

Parameters

source String

Returns

XPoint

ParsePoints(String)

Parses an array of points from a string.

XPoint[] ParsePoints(string value)

Parameters

value String

Returns

XPoint[]

ToString()

Converts this XPoint to a human readable string.

string ToString()

Returns

String

ToString(IFormatProvider)

Converts this XPoint to a human readable string.

string ToString(IFormatProvider provider)

Parameters

provider IFormatProvider

Returns

String

ConvertToString(String, IFormatProvider)

Implements ToString.

string ConvertToString(string format, IFormatProvider provider)

Parameters

format String

provider IFormatProvider

Returns

String

Offset(Double, Double)

Offsets the x and y value of this point.

void Offset(double offsetX, double offsetY)

Parameters

offsetX Double

offsetY Double

Add(XPoint, XVector)

Adds a point and a vector.

XPoint Add(XPoint point, XVector vector)

Parameters

point XPoint

vector XVector

Returns

XPoint

Subtract(XPoint, XVector)

Subtracts a vector from a point.

XPoint Subtract(XPoint point, XVector vector)

Parameters

point XPoint

vector XVector

Returns

XPoint

Subtract(XPoint, XPoint)

Subtracts a point from a point.

XVector Subtract(XPoint point1, XPoint point2)

Parameters

point1 XPoint

point2 XPoint

Returns

XVector

Multiply(XPoint, XMatrix)

Multiplies a point with a matrix.

XPoint Multiply(XPoint point, XMatrix matrix)

Parameters

point XPoint

matrix XMatrix

Returns

XPoint