MeshLib
 
Loading...
Searching...
No Matches
Box3f Class Reference

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()
 

Detailed Description

Box given by its min- and max- corners.

Constructor & Destructor Documentation

◆ Box3f() [1/2]

Box3f::Box3f ( )

create invalid box by default

◆ Box3f() [2/2]

Box3f::Box3f ( Vector3f^ min,
Vector3f^ max )

create box with given corners

◆ ~Box3f()

Box3f::~Box3f ( )

Member Function Documentation

◆ Center()

Vector3f Box3f::Center ( )

computes center of the box

◆ Diagonal()

float Box3f::Diagonal ( )

computes length from min to max

◆ fromMinAndSize()

static Box3f Box3f::fromMinAndSize ( Vector3f^ min,
Vector3f^ size )
static

create box from min-corner and size

◆ set() [1/2]

void Box3f::set ( Vector3f^ value)

◆ set() [2/2]

void Box3f::set ( Vector3f^ value)

◆ Size()

Vector3f Box3f::Size ( )

computes size of the box in all dimensions

◆ Valid()

bool Box3f::Valid ( )

true if the box contains at least one point

◆ Volume()

float Box3f::Volume ( )

computes the volume of this box

Member Data Documentation

◆ Max

property Vector3f Box3f::Max { Vector3f^ get()

◆ Min

property Vector3f Box3f::Min { Vector3f^ get()

The documentation for this class was generated from the following file: