Sphere3D
Description
Represents a sphere in 3 dimensions described by its center and radius length.
struct Sphere3D { Point3D center; float radius; float Radius( void ) const; Point3D Center( void ) const; float X( void ) const; float Y( void ) const; float Z( void ) const; bool operator == ( const avl::Sphere3D& rhs ) const; bool operator != ( const avl::Sphere3D& rhs ) const; };
Structure fields and default values (if defined) are described below:
- Point3D Center
- float Radius
struct Sphere3D
{
Point3D Center;
float Radius;
Point3D Center() const { return Center; };
float Radius() const { return Radius; };
bool operator == ( const avl::Sphere3D& rhs ) const
{
return Center == rhs.Center &&
Radius == rhs.Radius;
}
bool operator != ( const avl::Sphere3D& rhs ) const
{
return !(operator==(rhs));
}
};
