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

FX::FXRanged Class Reference

Bounds. More...

#include <FXRanged.h>

Public Member Functions

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

Public Attributes

FXVec3d lower
 
FXVec3d upper
 

Detailed Description

Bounds.


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

Copyright © 1997-2022 Jeroen van der Zijp