Chunks
Moddable voxel sandbox for room-scale VR.
|
Used in controls to describe an axis aligned rectangle. More...
Public Member Functions | |
Bounds (float vals) | |
Creates a Bounds with the same value for all 4 extremities. More... | |
Bounds (float xVals, float yVals) | |
Creates a Bounds with the same value for both horizontal extremities, and another value for both vertical extremities. More... | |
Bounds (Vector min, Vector max) | |
Creates a Bounds with the given minimum and maximum extremities. More... | |
Bounds (float minX, float minY, float maxX, float maxY) | |
Creates a Bounds with specific values for each of the 4 extremities. More... | |
bool | Contains (float x, float y) |
bool | Contains (Vector pos) |
override string | ToString () |
Returns a string representation of the Bounds. More... | |
Static Public Member Functions | |
static Bounds | Union (Bounds a, Bounds b) |
Finds the smallest Bounds that surrounds the two given bounds. More... | |
static Bounds | Intersection (Bounds a, Bounds b) |
Finds the largest Bounds that is contained within the two given bounds. More... | |
Properties | |
float | MinX [get, set] |
Left-most extremity of the Bounds. More... | |
float | MinY [get, set] |
Upper-most extremity of the Bounds. More... | |
float | MaxX [get, set] |
Right-most extremity of the Bounds. More... | |
float | MaxY [get, set] |
Lower-most extremity of the Bounds. More... | |
bool | IsValid [get] |
Checks to see if the maximum extremities are not smaller than the minimum extremities. More... | |
float | Width [get] |
Difference between the right and left extremities of the Bounds. More... | |
float | Height [get] |
Difference between the lower and upper extremities of the Bounds. More... | |
Vector | Size [get] |
The horizontal and vertical size of the bounds. More... | |
Vector | Min [get, set] |
The upper left corner of the Bounds. More... | |
Vector | Max [get, set] |
The lower right corner of the Bounds. More... | |
Vector | Center [get] |
The mid-point of the Bounds. More... | |
Used in controls to describe an axis aligned rectangle.
Chunks.Controls.Bounds.Bounds | ( | float | vals | ) |
Creates a Bounds with the same value for all 4 extremities.
vals | Value to use for each extremity. |
Chunks.Controls.Bounds.Bounds | ( | float | xVals, |
float | yVals | ||
) |
Creates a Bounds with the same value for both horizontal extremities, and another value for both vertical extremities.
xVals | Value to use for horizontal extremities. |
yVals | Value to use for vertical extremities. |
Creates a Bounds with the given minimum and maximum extremities.
min | Upper left extremity. |
max | Lower right extremity. |
Chunks.Controls.Bounds.Bounds | ( | float | minX, |
float | minY, | ||
float | maxX, | ||
float | maxY | ||
) |
bool Chunks.Controls.Bounds.Contains | ( | float | x, |
float | y | ||
) |
bool Chunks.Controls.Bounds.Contains | ( | Vector | pos | ) |
override string Chunks.Controls.Bounds.ToString | ( | ) |
Returns a string representation of the Bounds.
|
get |
Difference between the lower and upper extremities of the Bounds.
|
get |
Checks to see if the maximum extremities are not smaller than the minimum extremities.
|
getset |
Right-most extremity of the Bounds.
|
getset |
Lower-most extremity of the Bounds.
|
getset |
Left-most extremity of the Bounds.
|
getset |
Upper-most extremity of the Bounds.
|
get |
The horizontal and vertical size of the bounds.
|
get |
Difference between the right and left extremities of the Bounds.