Class Sphere
Defined in File Geometry.h
Inheritance Relationships
Base Type
public Surface(Class Surface)
Class Documentation
-
class Sphere : public Surface
A sphere around point _center with radius _radius.
Public Functions
-
Sphere(const Vector3d ¢er, double radius)
Constructor
- Parameters:
center – Center point of the sphere
radius – Radius of the sphere
-
virtual double distance(const Vector3d &point) const
Distance to the sphere, negative on the inside
- Parameters:
point – Point to calculate the distance from the sphere from
-
virtual Vector3d normal(const Vector3d &point) const
Returns the normal to the surface at a point. Negative on the inside, positive on the other.
- Parameters:
point – Vector corresponding to the point to which compute the normal vector
-
virtual std::string getDescription() const
-
inline size_t addReference() const
-
inline size_t removeReference() const
-
inline int removeReferenceNoDelete() const
-
inline size_t getReferenceCount() const
Protected Attributes
-
mutable size_t _referenceCount
-
Sphere(const Vector3d ¢er, double radius)