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

FX::FXRangef Class Reference

Bounds. More...

#include <FXRangef.h>

List of all members.

Public Member Functions

 FXRangef ()
 Default constructor; value is not initialized.
 FXRangef (const FXRangef &bounds)
 Initialize with another range.
 FXRangef (const FXVec3f &p)
 Initialize with a single point.
 FXRangef (const FXVec3f &l, const FXVec3f &h)
 Initialize with corner points.
 FXRangef (FXfloat x, FXfloat y, FXfloat z)
 Initialize with a single point.
 FXRangef (FXfloat xl, FXfloat xh, FXfloat yl, FXfloat yh, FXfloat zl, FXfloat zh)
 Initialize with explicit values.
 FXRangef (const FXSpheref &sphere)
 Initialize box to fully contain the given bounding sphere.
FXRangefoperator= (const FXRangef &bounds)
 Assignment.
FXRangefset (const FXRangef &bounds)
 Set value from another range.
FXRangefset (const FXVec3f &p)
 Set value from single point.
FXRangefset (const FXVec3f &l, const FXVec3f &h)
 Set value from corner points.
FXRangefset (FXfloat x, FXfloat y, FXfloat z)
 Set value from single point.
FXRangefset (FXfloat xl, FXfloat xh, FXfloat yl, FXfloat yh, FXfloat zl, FXfloat zh)
 Set value from explicit values.
FXVec3foperator[] (FXint i)
 Indexing with 0..1.
const FXVec3foperator[] (FXint i) const
 Indexing with 0..1.
FXbool operator== (const FXRangef &r) const
 Comparison.
FXbool operator!= (const FXRangef &r) const
FXfloat width () const
 Width of box.
FXfloat height () const
 Height of box.
FXfloat depth () const
 Depth of box.
FXfloat area () const
 Area of box.
FXfloat volume () const
 Volume of box.
FXfloat longest () const
 Longest side.
FXfloat shortest () const
 shortest side
FXfloat diameter () const
 Length of diagonal.
FXfloat radius () const
 Get radius of box.
FXVec3f diagonal () const
 Compute diagonal.
FXVec3f center () const
 Get center of box.
FXbool empty () const
 Test if empty.
FXbool contains (FXfloat x, FXfloat y, FXfloat z) const
 Test if box contains point x,y,z.
FXbool contains (const FXVec3f &p) const
 Test if box contains point p.
FXbool contains (const FXRangef &bounds) const
 Test if box properly contains another box.
FXbool contains (const FXSpheref &sphere) const
 Test if box properly contains sphere.
FXRangefinclude (FXfloat x, FXfloat y, FXfloat z)
 Include point.
FXRangefinclude (const FXVec3f &v)
 Include point.
FXRangefinclude (const FXRangef &box)
 Include given range into box.
FXRangefinclude (const FXSpheref &sphere)
 Include given sphere into this box.
FXint intersect (const FXVec4f &plane) const
 Intersect box with normalized plane ax+by+cz+w; returns -1,0,+1.
FXbool intersect (const FXVec3f &u, const FXVec3f &v) const
 Intersect box with ray u-v.
FXbool intersect (const FXVec3f &pos, const FXVec3f &dir, FXfloat hit[]) const
 Intersect box with ray pos+lambda*dir, returning true if hit.
FXVec3f corner (FXint c) const
 Get corner number 0..7.
FXRangef transform (const FXMat4f &mat) const
 Transform range by 4x4 matrix.
 ~FXRangef ()
 Destructor.

Public Attributes

FXVec3f lower
FXVec3f upper

Detailed Description

Bounds.


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

Copyright © 1997-2016 Jeroen van der Zijp