FloatRect Structure
From SFML.Net
SFML.Net
| FloatRect Structure |
IntRect is an utility class for manipulating 2D rectangles
with float coordinates
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
The FloatRect type exposes the following members.
| Name | Description | |
|---|---|---|
| FloatRect(Vector2f, Vector2f) |
Construct the rectangle from position and size
| |
| FloatRect(Single, Single, Single, Single) |
Construct the rectangle from its coordinates
|
| Name | Description | |
|---|---|---|
| Contains |
Check if a point is inside the rectangle's area
| |
| Equals(Object) |
Compare rectangle and object and checks if they are equal
(Overrides ValueTypeEquals(Object).) | |
| Equals(FloatRect) |
Compare two rectangles and checks if they are equal
| |
| GetHashCode |
Provide a integer describing the object
(Overrides ValueTypeGetHashCode.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Intersects(FloatRect) |
Check intersection between two rectangles
| |
| Intersects(FloatRect, FloatRect) |
Check intersection between two rectangles
| |
| ToString |
Provide a string describing the object
(Overrides ValueTypeToString.) |
| Name | Description | |
|---|---|---|
| Equality |
Operator == overload ; check rect equality
| |
| (FloatRect to IntRect) |
Explicit casting to another rectangle type
| |
| Inequality |
Operator != overload ; check rect inequality
|
| Name | Description | |
|---|---|---|
| Height | Height of the rectangle | |
| Left | Left coordinate of the rectangle | |
| Top | Top coordinate of the rectangle | |
| Width | Width of the rectangle |