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

FX::FXRange Class Reference

Range. More...

#include <FXRange.h>

List of all members.

Public Member Functions

 FXRange ()
 FXRange (FXfloat xlo, FXfloat xhi, FXfloat ylo, FXfloat yhi, FXfloat zlo, FXfloat zhi)
FXfloat side (FXint i) const
FXfloat width () const
FXfloat height () const
FXfloat depth () const
FXfloat longest () const
FXfloat shortest () const
FXbool empty () const
FXbool overlap (const FXRange &box) const
FXbool contains (FXfloat x, FXfloat y, FXfloat z) const
FXfloat * operator[] (FXint i)
const FXfloat * operator[] (FXint i) const
FXRange & include (const FXRange &box)
FXRange & include (FXfloat x, FXfloat y, FXfloat z)
FXRange & include (const FXVec3f &v)
FXRange & clipTo (const FXRange &box)

Friends

void boxCorners (FXVec3f *points, const FXRange &box)
FXbool boxIntersect (const FXRange &box, const FXVec3f &u, const FXVec3f &v)
FXVec3f boxCenter (const FXRange &box)
FXfloat boxDiagonal (const FXRange &box)
FXStream & operator<< (FXStream &store, const FXRange &box)
FXStream & operator>> (FXStream &store, FXRange &box)


Detailed Description

Range.


Constructor & Destructor Documentation

FX::FXRange::FXRange (   )  [inline]
 

Default constructor.

FX::FXRange::FXRange (  FXfloat  xlo,
FXfloat  xhi,
FXfloat  ylo,
FXfloat  yhi,
FXfloat  zlo,
FXfloat  zhi
)  [inline]
 

Initialize.


Member Function Documentation

FXfloat FX::FXRange::side (  FXint  i  )  const [inline]
 

Length of side i.

FXfloat FX::FXRange::width (   )  const [inline]
 

Width of box.

FXfloat FX::FXRange::height (   )  const [inline]
 

Height of box.

FXfloat FX::FXRange::depth (   )  const [inline]
 

Depth of box.

FXfloat FX::FXRange::longest (   )  const
 

Longest side.

FXfloat FX::FXRange::shortest (   )  const
 

shortest side

FXbool FX::FXRange::empty (   )  const
 

Test if empty.

FXbool FX::FXRange::overlap (  const FXRange &  box  )  const
 

Test if overlap.

FXbool FX::FXRange::contains (  FXfloat  x,
FXfloat  y,
FXfloat  z
)  const
 

Test if box contains point x,y,z.

FXfloat* FX::FXRange::operator[] (  FXint  i  )  [inline]
 

Indexing.

const FXfloat* FX::FXRange::operator[] (  FXint  i  )  const [inline]
 

Indexing.

FXRange& FX::FXRange::include (  const FXRange &  box  ) 
 

Include given range into box.

FXRange& FX::FXRange::include (  FXfloat  x,
FXfloat  y,
FXfloat  z
) 
 

Include point.

FXRange& FX::FXRange::include (  const FXVec3f &  v  ) 
 

Include point.

FXRange& FX::FXRange::clipTo (  const FXRange &  box  ) 
 

Clip domain against another.


Friends And Related Function Documentation

void boxCorners (  FXVec3f *  points,
const FXRange &  box
)  [friend]
 

Get corners of box.

FXbool boxIntersect (  const FXRange &  box,
const FXVec3f &  u,
const FXVec3f &  v
)  [friend]
 

Ray intersection test.

FXVec3f boxCenter (  const FXRange &  box  )  [friend]
 

Get center of box.

FXfloat boxDiagonal (  const FXRange &  box  )  [friend]
 

Compute diagonal.

FXStream& operator<< (  FXStream &  store,
const FXRange &  box
)  [friend]
 

Save object to a stream.

FXStream& operator>> (  FXStream &  store,
FXRange &  box
)  [friend]
 

Load object from a stream.

Copyright © 1997-2004 Jeroen van der Zijp