Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
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. | |
FXSphered & | operator= (const FXVec3d &cen) |
Assign with vector. | |
FXSphered & | operator= (const FXSphered &sphere) |
Assignment. | |
FXSphered & | set (const FXSphered &sphere) |
Set value from another sphere. | |
FXSphered & | set (const FXVec3d &cen, FXdouble rad=0.0) |
Set value from center and radius. | |
FXSphered & | set (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. | |
FXSphered & | include (FXdouble x, FXdouble y, FXdouble z) |
Include point. | |
FXSphered & | include (const FXVec3d &p) |
Include point. | |
FXSphered & | includeInRadius (FXdouble x, FXdouble y, FXdouble z) |
Expand radius to include point. | |
FXSphered & | includeInRadius (const FXVec3d &p) |
Expand radius to include point. | |
FXSphered & | include (const FXRanged &box) |
Include given range into this one. | |
FXSphered & | includeInRadius (const FXRanged &box) |
Expand radius to include box. | |
FXSphered & | include (const FXSphered &sphere) |
Include given sphere into this one. | |
FXSphered & | includeInRadius (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 |
Spherical bounds.
Copyright © 1997-2022 Jeroen van der Zijp |