Méthode | Description | |
---|---|---|
Add ( this point, Distance distance ) : Point |
Shifts the point to the specified distance.
|
|
Add ( this point, |
Adds an offset specified by the Size to the specified point.
|
|
Add ( this point, double x, double y ) : Point |
Adds an offset to the specified point.
|
|
Add ( this rect, double width, double height ) : |
Increases size if the rectangle to the specified width and height.
|
|
Add ( this size, double x, double y ) : |
Increments size to the specified values.
|
|
BottomLeft ( this rect ) : Point |
Gets position the lower left corner of the rectangle.
|
|
BottomRight ( this rect ) : Point |
Gets position the lower right corner of the rectangle.
|
|
Center ( this rect ) : Point |
Gets center of the specified rectangle.
|
|
CenterX ( this rect ) : double |
Gets x-coordinate for center of the specified rectangle.
|
|
CenterY ( this rect ) : double |
Gets y-coordinate for center of the specified rectangle.
|
|
EnsureInBounds ( this point, |
Ensures that coordinates of the point are in the specified bounds.
|
|
EnsureInHorizontalBounds ( this point, |
Ensures that the X-coordinate of the point is in the specified horizontal bounds.
|
|
EnsureInVerticalBounds ( this point, |
Ensures that the Y-coordinate of the point is in the specified vertical bounds.
|
|
EnsurePositive ( this point ) : Point |
Ensures that coordinates are positive.
|
|
IsNotSet ( this point ) : bool |
Determines whether coordinates of the point are Not a Number (NaN).
|
|
OverlapsHorizontally ( this rect, |
Tests whether the rectangle overlaps with another one horizontally.
|
|
OverlapsVertically ( this rect, |
Tests whether the rectangle overlaps with another one vertically.
|
|
Position ( this rect ) : Point |
Gets position of the specified rectangle.
|
|
Round ( this point ) : Point |
Rounds the specified point to the nearest integer coordinates.
|
|
Scaled ( this rect, double factor ) : |
Gets scaled rect.
|
|
Scaled ( this size, double factor ) : |
Gets scaled size.
|
|
Subtract ( this point, |
Subtracts an offset specified by the Size from the specified point.
|
|
TopLeft ( this rect ) : Point |
Gets position the upper left corner of the rectangle.
|
|
TopRight ( this rect ) : Point |
Gets position the upper right corner of the rectangle.
|
public static Add ( this point, Distance distance ) : Point | ||
point | this | The point. |
distance | Distance | The distance. |
Résultat | Point |
public static Add ( this point, |
||
point | this | The point. |
size | Distance to add. | |
Résultat | Point |
public static Add ( this point, double x, double y ) : Point | ||
point | this | The point. |
x | double | Distance along X-coordinate. |
y | double | Distance along Y-coordinate. |
Résultat | Point |
public static Add ( this rect, double width, double height ) : |
||
rect | this | The rectangle. |
width | double | Value to add to the width of the rectangle. |
height | double | Value to add to the height of the rectangle. |
Résultat |
public static Add ( this size, double x, double y ) : |
||
size | this | The size. |
x | double | Increment by X-coordinate. |
y | double | Increment by Y-coordinate. |
Résultat |
public static BottomLeft ( this rect ) : Point | ||
rect | this | Rectangle. |
Résultat | Point |
public static BottomRight ( this rect ) : Point | ||
rect | this | Rectangle. |
Résultat | Point |
public static Center ( this rect ) : Point | ||
rect | this | Rectangle. |
Résultat | Point |
public static CenterX ( this rect ) : double | ||
rect | this | Rectangle. |
Résultat | double |
public static CenterY ( this rect ) : double | ||
rect | this | Rectangle. |
Résultat | double |
public static EnsureInBounds ( this point, |
||
point | this | The point. |
bounds | The bounds. | |
Résultat | Point |
public static EnsureInHorizontalBounds ( this point, |
||
point | this | The point. |
bounds | The bounds. | |
Résultat | Point |
public static EnsureInVerticalBounds ( this point, |
||
point | this | The point. |
bounds | The bounds. | |
Résultat | Point |
public static EnsurePositive ( this point ) : Point | ||
point | this | The point. |
Résultat | Point |
public static IsNotSet ( this point ) : bool | ||
point | this | The point. |
Résultat | bool |
public static OverlapsHorizontally ( this rect, |
||
rect | this | The rectangle. |
testRect | Test rectangle. | |
accuracy | double | Accuracy. |
Résultat | bool |
public static OverlapsVertically ( this rect, |
||
rect | this | The rectangle. |
testRect | Test rectangle. | |
accuracy | double | Accuracy. |
Résultat | bool |
public static Position ( this rect ) : Point | ||
rect | this | Rectangle. |
Résultat | Point |
public static Round ( this point ) : Point | ||
point | this | The point to round coordinates. |
Résultat | Point |
public static Scaled ( this rect, double factor ) : |
||
rect | this | |
factor | double | |
Résultat |
public static Scaled ( this size, double factor ) : |
||
size | this | Size. |
factor | double | |
Résultat |
public static Subtract ( this point, |
||
point | this | The point. |
size | Distance to subtract. | |
Résultat | Point |
public static TopLeft ( this rect ) : Point | ||
rect | this | Rectangle. |
Résultat | Point |
public static TopRight ( this rect ) : Point | ||
rect | this | Rectangle. |
Résultat | Point |