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

FX::FXSpheref Class Reference

Spherical bounds. More...

#include <FXSpheref.h>

List of all members.

Public Member Functions

 FXSpheref ()
 Default constructor; value is not initialized.
 FXSpheref (const FXSpheref &sphere)
 Copy constructor.
 FXSpheref (const FXVec3f &cen, FXfloat rad=0.0f)
 Initialize from center and radius.
 FXSpheref (FXfloat x, FXfloat y, FXfloat z, FXfloat rad=0.0f)
 Initialize from center and radius.
 FXSpheref (const FXRangef &bounds)
 Initialize sphere to fully contain the given bounding box.
FXSpherefoperator= (const FXSpheref &sphere)
 Assignment.
FXSpherefset (const FXSpheref &sphere)
 Set value from another sphere.
FXSpherefset (const FXVec3f &cen, FXfloat rad=0.0f)
 Set value from center and radius.
FXSpherefset (FXfloat x, FXfloat y, FXfloat z, FXfloat rad=0.0f)
 Set value from center and radius.
FXbool operator== (const FXSpheref &s) const
 Comparison.
FXbool operator!= (const FXSpheref &s) const
FXfloat diameter () const
 Diameter of sphere.
FXfloat area () const
 Area of sphere.
FXfloat volume () const
 Volume of sphere.
FXbool empty () const
 Test if empty.
FXbool contains (FXfloat x, FXfloat y, FXfloat z) const
 Test if sphere contains point x,y,z.
FXbool contains (const FXVec3f &p) const
 Test if sphere contains point p.
FXbool contains (const FXRangef &box) const
 Test if sphere properly contains another box.
FXbool contains (const FXSpheref &sphere) const
 Test if sphere properly contains another sphere.
FXSpherefinclude (FXfloat x, FXfloat y, FXfloat z)
 Include point.
FXSpherefinclude (const FXVec3f &p)
 Include point.
FXSpherefincludeInRadius (FXfloat x, FXfloat y, FXfloat z)
 Expand radius to include point.
FXSpherefincludeInRadius (const FXVec3f &p)
 Expand radius to include point.
FXSpherefinclude (const FXRangef &box)
 Include given range into this one.
FXSpherefincludeInRadius (const FXRangef &box)
 Expand radius to include box.
FXSpherefinclude (const FXSpheref &sphere)
 Include given sphere into this one.
FXSpherefincludeInRadius (const FXSpheref &sphere)
 Expand radius to include sphere.
FXint intersect (const FXVec4f &plane) const
 Intersect sphere with normalized plane ax+by+cz+w; returns -1,0,+1.
FXbool intersect (const FXVec3f &u, const FXVec3f &v) const
 Intersect sphere 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.
FXSpheref transform (const FXMat4f &mat) const
 Transform sphere by 4x4 matrix.
 ~FXSpheref ()
 Destructor.

Public Attributes

FXVec3f center
FXfloat radius

Detailed Description

Spherical bounds.


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

Copyright © 1997-2016 Jeroen van der Zijp