Struct RPoint
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
Inherited Members
Namespace: TheArtOfDev.HtmlRenderer.Adapters.Entities
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public struct RPoint
Constructors
RPoint(Double, Double)
Initializes a new instance of the RPoint class with the specified coordinates.
Declaration
public RPoint(double x, double y)
Parameters
System.Double
x
The horizontal position of the point. |
System.Double
y
The vertical position of the point. |
Fields
Empty
Represents a new instance of the RPoint class with member data left uninitialized.
Declaration
public static readonly RPoint Empty
Field Value
RPoint
|
Properties
IsEmpty
Gets a value indicating whether this RPoint is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean |
X
Gets or sets the x-coordinate of this RPoint.
Declaration
public double X { get; set; }
Property Value
System.Double
The x-coordinate of this RPoint. |
Y
Gets or sets the y-coordinate of this RPoint.
Declaration
public double Y { get; set; }
Property Value
System.Double
The y-coordinate of this RPoint. |
Methods
Add(RPoint, RSize)
Translates a given RPoint by a specified System.Drawing.SizeF .
Declaration
public static RPoint Add(RPoint pt, RSize sz)
Parameters
RPoint
pt
The RPoint to translate. |
RSize
sz
The System.Drawing.SizeF that specifies the numbers to add to the coordinates of
|
Returns
RPoint
The translated RPoint. |
Equals(Object)
Specifies whether this RPoint contains the same coordinates as the specified System.Object .
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to test. |
Returns
System.Boolean
This method returns true if |
Overrides
GetHashCode()
Returns a hash code for this RPoint structure.
Declaration
public override int GetHashCode()
Returns
System.Int32
An integer value that specifies a hash value for this RPoint structure. |
Overrides
Subtract(RPoint, RSize)
Translates a RPoint by the negative of a specified size.
Declaration
public static RPoint Subtract(RPoint pt, RSize sz)
Parameters
RPoint
pt
The RPoint to translate. |
RSize
sz
The System.Drawing.SizeF that specifies the numbers to subtract from the coordinates of
|
Returns
RPoint
The translated RPoint. |
ToString()
Converts this RPoint to a human readable string.
Declaration
public override string ToString()
Returns
System.String
A string that represents this RPoint. |
Overrides
Operators
Addition(RPoint, RSize)
Translates the RPoint by the specified System.Drawing.SizeF .
Declaration
public static RPoint operator +(RPoint pt, RSize sz)
Parameters
RPoint
pt
The RPoint to translate. |
RSize
sz
The System.Drawing.SizeF that specifies the numbers to add to the x- and y-coordinates of the RPoint . |
Returns
RPoint
The translated RPoint. |
Equality(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.
Declaration
public static bool operator ==(RPoint left, RPoint right)
Parameters
RPoint
left
A RPoint to compare. |
RPoint
right
A RPoint to compare. |
Returns
System.Boolean
true if the X and Y values of the left and right RPoint structures are equal; otherwise, false. |
Inequality(RPoint, RPoint)
Determines whether the coordinates of the specified points are not equal.
Declaration
public static bool operator !=(RPoint left, RPoint right)
Parameters
RPoint
left
A RPoint to compare. |
RPoint
right
A RPoint to compare. |
Returns
System.Boolean
true to indicate the X and
Y
values of |
Subtraction(RPoint, RSize)
Translates a RPoint by the negative of a specified System.Drawing.SizeF .
Declaration
public static RPoint operator -(RPoint pt, RSize sz)
Parameters
RPoint
pt
The RPoint to translate. |
RSize
sz
The System.Drawing.SizeF that specifies the numbers to subtract from the coordinates of
|
Returns
RPoint
The translated RPoint. |