RPoint

TheArtOfDev.HtmlRenderer.Adapters.Entities

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

Constructores

RPoint(double, double)

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

x
The horizontal position of the point.
y
The vertical position of the point.

Propiedades

IsEmpty : bool

Gets a value indicating whether this RPoint is empty.

Devuelve: true if both X and Y are 0; otherwise, false.

X : double

Gets or sets the x-coordinate of this RPoint.

Devuelve: The x-coordinate of this RPoint.

Y : double

Gets or sets the y-coordinate of this RPoint.

Devuelve: The y-coordinate of this RPoint.

Métodos

Add(RPoint, RSize) : RPoint

Translates a given RPoint by a specified SizeF .

pt
The RPoint to translate.
sz
The SizeF that specifies the numbers to add to the coordinates of .

Devuelve: The translated RPoint.

Equals(object) : bool

Specifies whether this RPoint contains the same coordinates as the specified Object .

obj
The Object to test.

Devuelve: This method returns true if is a RPoint and has the same coordinates as this Point .

GetHashCode() : int

Returns a hash code for this RPoint structure.

Devuelve: An integer value that specifies a hash value for this RPoint structure.

op_Addition(RPoint, RSize) : RPoint

Translates the RPoint by the specified SizeF .

pt
The RPoint to translate.
sz
The SizeF that specifies the numbers to add to the x- and y-coordinates of the RPoint .

Devuelve: The translated RPoint.

op_Equality(RPoint, RPoint) : bool

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

left
A RPoint to compare.
right
A RPoint to compare.

Devuelve: true if the X and Y values of the left and right RPoint structures are equal; otherwise, false.

op_Inequality(RPoint, RPoint) : bool

Determines whether the coordinates of the specified points are not equal.

left
A RPoint to compare.
right
A RPoint to compare.

Devuelve: true to indicate the X and Y values of and are not equal; otherwise, false.

op_Subtraction(RPoint, RSize) : RPoint

Translates a RPoint by the negative of a specified SizeF .

pt
The RPoint to translate.
sz
The SizeF that specifies the numbers to subtract from the coordinates of .

Devuelve: The translated RPoint.

Subtract(RPoint, RSize) : RPoint

Translates a RPoint by the negative of a specified size.

pt
The RPoint to translate.
sz
The SizeF that specifies the numbers to subtract from the coordinates of .

Devuelve: The translated RPoint.

ToString() : string

Converts this RPoint to a human readable string.

Devuelve: A string that represents this RPoint.

Campos

Empty : RPoint

Represents a new instance of the RPoint class with member data left uninitialized.