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

FX::FXSphered Class Reference

Spherical bounds. More...

#include <FXSphered.h>

Public Member Functions

 FXSphered ()
 Default constructor; value is not initialized.
 
 FXSphered (const FXSphered &sphere)
 Copy constructor.
 
 FXSphered (const FXVec3d &cen, FXdouble rad=0.0)
 Initialize from center and radius.
 
 FXSphered (FXdouble x, FXdouble y, FXdouble z, FXdouble rad=0.0)
 Initialize from center and radius.
 
 FXSphered (const FXRanged &bounds)
 Initialize sphere to fully contain the given bounding box.
 
FXSpheredoperator= (const FXVec3d &cen)
 Assign with vector.
 
FXSpheredoperator= (const FXSphered &sphere)
 Assignment.
 
FXSpheredset (const FXSphered &sphere)
 Set value from another sphere.
 
FXSpheredset (const FXVec3d &cen, FXdouble rad=0.0)
 Set value from center and radius.
 
FXSpheredset (FXdouble x, FXdouble y, FXdouble z, FXdouble rad=0.0)
 Set value from center and radius.
 
FXbool operator== (const FXSphered &s) const
 Comparison.
 
FXbool operator!= (const FXSphered &s) const
 
FXdouble diameter () const
 Diameter of sphere.
 
FXdouble area () const
 Area of sphere.
 
FXdouble volume () const
 Volume of sphere.
 
FXbool empty () const
 Test if empty.
 
FXbool contains (FXdouble x, FXdouble y, FXdouble z) const
 Test if sphere contains point x,y,z.
 
FXbool contains (const FXVec3d &p) const
 Test if sphere contains point p.
 
FXbool contains (const FXRanged &box) const
 Test if sphere contains another box.
 
FXbool contains (const FXSphered &sphere) const
 Test if sphere contains another sphere.
 
FXSpheredinclude (FXdouble x, FXdouble y, FXdouble z)
 Include point.
 
FXSpheredinclude (const FXVec3d &p)
 Include point.
 
FXSpheredincludeInRadius (FXdouble x, FXdouble y, FXdouble z)
 Expand radius to include point.
 
FXSpheredincludeInRadius (const FXVec3d &p)
 Expand radius to include point.
 
FXSpheredinclude (const FXRanged &box)
 Include given range into this one.
 
FXSpheredincludeInRadius (const FXRanged &box)
 Expand radius to include box.
 
FXSpheredinclude (const FXSphered &sphere)
 Include given sphere into this one.
 
FXSpheredincludeInRadius (const FXSphered &sphere)
 Expand radius to include sphere.
 
FXint intersect (const FXVec4d &plane) const
 Intersect sphere with normalized plane ax+by+cz+w; returns -1,0,+1.
 
FXbool intersect (const FXVec3d &u, const FXVec3d &v) const
 Intersect sphere 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.
 
FXSphered transform (const FXMat4d &mat) const
 Transform sphere by 4x4 matrix.
 
 ~FXSphered ()
 Destructor.
 

Public Attributes

FXVec3d center
 
FXdouble radius
 

Detailed Description

Spherical bounds.


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

Copyright © 1997-2022 Jeroen van der Zijp