Struct RPoint
- Namespace
- TheArtOfDev.HtmlRenderer.Adapters.Entities
- Assembly
- StockSharp.Xaml.dll
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
public struct RPoint
- Inherited Members
- Extension Methods
Constructors
RPoint(double, double)
Initializes a new instance of the RPoint class with the specified coordinates.
public RPoint(double x, double y)
Parameters
Fields
Empty
Represents a new instance of the RPoint class with member data left uninitialized.
public static readonly RPoint Empty
Field Value
Properties
IsEmpty
Gets a value indicating whether this RPoint is empty.
public bool IsEmpty { get; }
Property Value
X
Gets or sets the x-coordinate of this RPoint.
public double X { get; set; }
Property Value
Y
Gets or sets the y-coordinate of this RPoint.
public double Y { get; set; }
Property Value
Methods
Add(RPoint, RSize)
public static RPoint Add(RPoint pt, RSize sz)
Parameters
pt
RPointThe RPoint to translate.
sz
RSizeThe SizeF that specifies the numbers to add to the coordinates of
pt
.
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
Returns
GetHashCode()
Returns a hash code for this RPoint structure.
public override int GetHashCode()
Returns
Subtract(RPoint, RSize)
Translates a RPoint by the negative of a specified size.
public static RPoint Subtract(RPoint pt, RSize sz)
Parameters
pt
RPointThe RPoint to translate.
sz
RSizeThe SizeF that specifies the numbers to subtract from the coordinates of
pt
.
Returns
ToString()
Converts this RPoint to a human readable string.
public override string ToString()
Returns
Operators
operator +(RPoint, RSize)
public static RPoint operator +(RPoint pt, RSize sz)
Parameters
pt
RPointThe RPoint to translate.
sz
RSizeThe SizeF that specifies the numbers to add to the x- and y-coordinates of the RPoint .
Returns
operator ==(RPoint, RPoint)
Compares two RPoint structures. The result specifies whether the values of the X and Y properties of the two RPoint structures are equal.
public static bool operator ==(RPoint left, RPoint right)
Parameters
Returns
- bool
true if the X and Y values of the left and right RPoint structures are equal; otherwise, false.
operator !=(RPoint, RPoint)
Determines whether the coordinates of the specified points are not equal.
public static bool operator !=(RPoint left, RPoint right)
Parameters
Returns
operator -(RPoint, RSize)
public static RPoint operator -(RPoint pt, RSize sz)
Parameters
pt
RPointThe RPoint to translate.
sz
RSizeThe SizeF that specifies the numbers to subtract from the coordinates of
pt
.