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
-
virtual double distance(const Vector3d &point) const
Returns the distance of a point to the surface. Negative on the one side, positive on the other. For closed surfaces it is negative on the inside.
- Parameters:
point – vector corresponding to the point to which compute the distance
-
virtual Vector3d normal(const Vector3d &point) const
Returns the normal to the surface at a point. Negative on the one side, positive on the other. For closed surfaces it is negative on the inside.
- 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
-
virtual double distance(const Vector3d &point) const