Struct PointD
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
Methods
- 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.
- 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.
- ToString()
Returns a string that represents the current object.
Operators
- 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.
- 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.