Box given by its min- and max- corners. More...
#include <MRBox3.h>
Public Member Functions | |
Box3f () | |
create invalid box by default | |
Box3f (Vector3f^ min, Vector3f^ max) | |
create box with given corners | |
~Box3f () | |
void | set (Vector3f^ value) |
void | set (Vector3f^ value) |
Vector3f | Center () |
computes center of the box | |
Vector3f | Size () |
computes size of the box in all dimensions | |
float | Diagonal () |
computes length from min to max | |
float | Volume () |
computes the volume of this box | |
bool | Valid () |
true if the box contains at least one point | |
Static Public Member Functions | |
static Box3f | fromMinAndSize (Vector3f^ min, Vector3f^ size) |
create box from min-corner and size | |
Public Attributes | |
property Vector3f | Min { Vector3f^ get() |
property Vector3f | Max { Vector3f^ get() |
Box given by its min- and max- corners.
Box3f::Box3f | ( | ) |
create invalid box by default
Box3f::~Box3f | ( | ) |
Vector3f Box3f::Center | ( | ) |
computes center of the box
float Box3f::Diagonal | ( | ) |
computes length from min to max
create box from min-corner and size
void Box3f::set | ( | Vector3f^ | value | ) |
void Box3f::set | ( | Vector3f^ | value | ) |
Vector3f Box3f::Size | ( | ) |
computes size of the box in all dimensions
bool Box3f::Valid | ( | ) |
true if the box contains at least one point
float Box3f::Volume | ( | ) |
computes the volume of this box