Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
bbox3d Class Reference

#include <vector3d.h>

Collaboration diagram for bbox3d:

Public Member Functions

 bbox3d ()
 
void empty (void)
 
bool isEmpty (void) const
 
void add (const vector3d &p)
 

Public Attributes

vector3d min
 
vector3d max
 

Detailed Description

Definition at line 164 of file vector3d.h.

Constructor & Destructor Documentation

bbox3d ( )
inline

Definition at line 167 of file vector3d.h.

References empty().

167 {empty();}
void empty(void)
Definition: vector3d.h:168

Here is the call graph for this function:

Member Function Documentation

void add ( const vector3d p)
inline

Definition at line 170 of file vector3d.h.

References max, min, vector3d::x, vector3d::y, and vector3d::z.

170  {
171  if (min.x>p.x) min.x=p.x;
172  if (min.y>p.y) min.y=p.y;
173  if (min.z>p.z) min.z=p.z;
174  if (max.x<p.x) max.x=p.x;
175  if (max.y<p.y) max.y=p.y;
176  if (max.z<p.z) max.z=p.z;
177  }
vector3d max
Definition: vector3d.h:166
real x
Definition: vector3d.h:88
vector3d min
Definition: vector3d.h:166
real y
Definition: vector3d.h:88
real z
Definition: vector3d.h:88
void empty ( void  )
inline

Definition at line 168 of file vector3d.h.

References max, min, vector3d::x, vector3d::y, and vector3d::z.

Referenced by bbox3d().

168 {min.x=min.y=min.z=1e30;max.x=max.y=max.z=-1e30;}
vector3d max
Definition: vector3d.h:166
real x
Definition: vector3d.h:88
vector3d min
Definition: vector3d.h:166
real y
Definition: vector3d.h:88
real z
Definition: vector3d.h:88

Here is the caller graph for this function:

bool isEmpty ( void  ) const
inline

Definition at line 169 of file vector3d.h.

References max, min, and vector3d::x.

169 {return min.x>max.x;}
vector3d max
Definition: vector3d.h:166
real x
Definition: vector3d.h:88
vector3d min
Definition: vector3d.h:166

Member Data Documentation

vector3d max

Definition at line 166 of file vector3d.h.

Referenced by add(), empty(), and isEmpty().

vector3d min

Definition at line 166 of file vector3d.h.

Referenced by add(), empty(), and isEmpty().


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