Table of Contents

Struct PointD

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Represents an ordered pair of x and y coordinates that define a point in a two-dimensional plane.

[Serializable]
public struct PointD : IEquatable<PointD>
Implements

Constructors

PointD(double)

Initializes a new instance of the PointD class with the specified coordinate.

PointD(double, double)

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

PointD(Vector2)

Initializes a new instance of the PointD struct from the specified Vector2.

Fields

Empty

Gets an empty point with (0, 0) ccordinates.

MaxValue

Gets maximal possible value.

MinValue

Gets minimal possible value.

MinusOne

Gets a point with (-1, -1) ccordinates.

One

Gets a point with (1, 1) ccordinates.

Properties

IsEmpty

Gets a value indicating whether this PointD is empty.

X

Gets the x-coordinate of this PointD.

Y

Gets the y-coordinate of this PointD.

Methods

Add(PointD, PointD)

Translates a PointD by a given PointD.

Add(PointD, SizeD)

Translates a PointD by a given SizeD.

Add(PointD, SizeI)

Translates a PointD by a given SizeI.

Ceiling()

Returns new PointD value with ceiling of the X and Y. Uses Ceiling(double) on values.

ConvertToString(string, IFormatProvider)

Creates a string representation of this object based on the format string and IFormatProvider passed in. If the provider is null, the CurrentCulture is used. See the documentation for IFormattable for more information.

Equals(PointD)

Indicates whether the current object is equal to another object of the same type.

Equals(object?)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

GetLocation(bool)

Gets X or Y depending on vert parameter value.

Offset(PointI)

Translates this PointD by the specified amount.

Offset(double, double)

Translates this PointD by the specified amount.

OffsetBy(PointD)

Returns new PointD with coordinates of this point translated by the specified amount specified in d.

OffsetBy(double, double)

Returns new PointD with coordinates of this point translated by the specified amount.

Parse(string)

Parse - returns an instance converted from the provided string using the culture "en-US"

string with Point data
PixelFromDip(double?)

Converts this point to the pixel point using the specified scale factor.

SetLocation(bool, double)

Sets X or Y depending on vert parameter value.

Subtract(PointD, PointD)

Translates a PointD by the negative of a given PointD.

Subtract(PointD, SizeD)

Translates a PointD by the negative of a given SizeD.

Subtract(PointD, SizeI)

Translates a PointD by the negative of a given SizeI.

ToPoint()

Converts a PointD structure to a PointI structure.

ToString()

Returns a string that represents the current object.

ToVector2()

Creates a new Vector2 from this PointF.

Operators

operator +(PointD, PointD)

Translates a PointD by a given PointD.

operator +(PointD, SizeD)

Translates a PointD by a given SizeD.

operator +(PointD, SizeI)

Translates a PointD by a given SizeI.

operator +(PointD, double)

Moves a PointD by a given value.

operator ==(PointD, PointD)

Compares two PointD objects. The result specifies whether the values of the X and Y properties of the two PointD objects are equal.

explicit operator Vector2(PointD)

Converts the specified PointD to a Vector2.

explicit operator PointD(Vector2)

Converts the specified Vector2 to a PointD.

implicit operator SKPoint(PointD)

Converts the specified PointD to a SKPoint.

implicit operator Point(PointD)

Creates a Point with the properties of the specified PointD

implicit operator PointD(SKPoint)

Converts the specified SKPoint to a PointD.

implicit operator PointD(Point)

Creates a PointD with the properties of the specified Point

implicit operator PointD((double, double))

Implicit operator convertion from tuple with two values to PointD.

operator !=(PointD, PointD)

Compares two PointD objects. The result specifies whether the values of the X or Y properties of the two PointD objects are unequal.

operator -(PointD, PointD)

Translates a PointD by the negative of a given PointD.

operator -(PointD, SizeD)

Translates a PointD by the negative of a given SizeD.

operator -(PointD, SizeI)

Translates a PointD by the negative of a given SizeI.