S_Sphere.h
Go to the documentation of this file.
1 #pragma once
2 #ifndef _S_SPHERE_H
3 # define _S_SPHERE_H
4 
6 
7 namespace sch
8 {
9 
11 {
12 public:
17  SCH_API S_Sphere(const Scalar & radius);
18  SCH_API virtual ~S_Sphere();
19 
20  SCH_API virtual S_Sphere * clone() const;
21 
22  SCH_API virtual Point3 l_Support(const Vector3 & v, int & lastFeature) const;
23 
24  SCH_API virtual S_ObjectType getType() const;
25 
26  SCH_API virtual Scalar getRadius() const;
27 
28 protected:
30 };
31 } // namespace sch
32 
33 #endif
34 
Definition: S_ObjectNormalized.h:16
S_ObjectType
type of a solid object. Don't use it to cast !
Definition: S_Object.h:234
Definition: S_Sphere.h:11
virtual SCH_API S_ObjectType getType() const
must be overloaded to return the type
virtual SCH_API Scalar getRadius() const
virtual SCH_API Point3 l_Support(const Vector3 &v, int &lastFeature) const
gives the support point for a given vector in local cordinates and a given last feature....
SCH_API S_Sphere(const Scalar &radius)
constructor
virtual SCH_API S_Sphere * clone() const
Returns a copy of this S_Object.
Scalar radius_
Definition: S_Sphere.h:29
virtual SCH_API ~S_Sphere()
Definition: CD_Pair.h:12
double Scalar
Definition: SCH_Types.h:23
#define SCH_API
Definition: sch_api.h:13