The Open Toolkit library
1.0
|
Defines a 2d box (rectangle). More...
Public Member Functions | |
Box2 (Vector2 topLeft, Vector2 bottomRight) | |
Constructs a new Box2 with the specified dimensions. More... | |
Box2 (float left, float top, float right, float bottom) | |
Constructs a new Box2 with the specified dimensions. More... | |
override string | ToString () |
Returns a System.String describing the current instance. More... | |
Static Public Member Functions | |
static Box2 | FromTLRB (float top, float left, float right, float bottom) |
Creates a new Box2 with the specified dimensions. More... | |
Public Attributes | |
float | Left |
The left boundary of the structure. More... | |
float | Right |
The right boundary of the structure. More... | |
float | Top |
The top boundary of the structure. More... | |
float | Bottom |
The bottom boundary of the structure. More... | |
Properties | |
float | Width [get] |
Gets a float describing the width of the Box2 structure. More... | |
float | Height [get] |
Gets a float describing the height of the Box2 structure. More... | |
Defines a 2d box (rectangle).
Constructs a new Box2 with the specified dimensions.
topLeft | AnOpenTK.Vector2 describing the top-left corner of the Box2. |
bottomRight | An OpenTK.Vector2 describing the bottom-right corner of the Box2. |
OpenTK.Box2.Box2 | ( | float | left, |
float | top, | ||
float | right, | ||
float | bottom | ||
) |
Constructs a new Box2 with the specified dimensions.
left | The position of the left boundary. |
top | The position of the top boundary. |
right | The position of the right boundary. |
bottom | The position of the bottom boundary. |
|
static |
Creates a new Box2 with the specified dimensions.
top | The position of the top boundary. |
left | The position of the left boundary. |
right | The position of the right boundary. |
bottom | The position of the bottom boundary. |
override string OpenTK.Box2.ToString | ( | ) |
Returns a System.String describing the current instance.
float OpenTK.Box2.Bottom |
The bottom boundary of the structure.
float OpenTK.Box2.Left |
The left boundary of the structure.
float OpenTK.Box2.Right |
The right boundary of the structure.
float OpenTK.Box2.Top |
The top boundary of the structure.
|
get |
Gets a float describing the height of the Box2 structure.
|
get |
Gets a float describing the width of the Box2 structure.