Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXRange Class Reference

Range.

#include <FXRange.h>

List of all members.

Public Methods

 FXRange ()
 Default constructor.

 FXRange (FXfloat xlo, FXfloat xhi, FXfloat ylo, FXfloat yhi, FXfloat zlo, FXfloat zhi)
 Initialize.

FXfloat side (FXint i) const
 Length of side i.

FXfloat width () const
 Width of box.

FXfloat height () const
 Height of box.

FXfloat depth () const
 Depth of box.

FXfloat longest () const
 Longest side.

FXfloat shortest () const
 shortest side

FXbool empty () const
 Test if empty.

FXbool overlap (const FXRange &box) const
 Test if overlap.

FXbool contains (FXfloat x, FXfloat y, FXfloat z) const
 Test if box contains point x,y,z.

FXfloat * operator[] (FXint i)
 Indexing.

const FXfloat * operator[] (FXint i) const
 Indexing.

FXRange & include (const FXRange &box)
 Include given range into box.

FXRange & include (FXfloat x, FXfloat y, FXfloat z)
 Include point.

FXRange & include (const FXVec &v)
 Include point.

FXRange & clipTo (const FXRange &box)
 Clip domain against another.


Friends

FXAPI void boxCorners (FXVec *points, const FXRange &box)
 Get corners of box.

FXAPI FXbool boxIntersect (const FXRange &box, const FXVec &u, const FXVec &v)
 Ray intersection test.

FXAPI FXVec boxCenter (const FXRange &box)
 Get center of box.

FXAPI FXfloat boxDiagonal (const FXRange &box)
 Compute diagonal.

FXAPI FXStreamoperator<< (FXStream &store, const FXRange &box)
 Save object to a stream.

FXAPI FXStreamoperator>> (FXStream &store, FXRange &box)
 Load object from a stream.