Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
isphere.h
1 #pragma once
2 
3 
4 #include "base/src/base.h"
5 #include "dim.h"
6 
7 namespace itascaxd {
10  class ISphere {
11  public:
13  inline static const TType type_ = 0x4e93301b;
15  virtual DVect getPosition() const=0;
17  virtual double getRadius() const=0;
18  //virtual double getDistance(const DVect &v) const=0;
20  virtual void setPosition(const DVect &v)=0;
22  virtual void setRadius(const double &v,bool lock=false)=0;
23  };
24 } // namespace itascaxd
25 // EoF
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition: isphere.h:13
virtual void setPosition(const DVect &v)=0
Sets the center of the sphere.
DIM - Provides code portability between 2D and 3D codes.
Interface for the definition of a Sphere.
Definition: isphere.h:10
virtual void setRadius(const double &v, bool lock=false)=0
sets the sphere radius
virtual DVect getPosition() const =0
Returns the center of the sphere.
unsigned int TType
class type indicator
Definition: basedef.h:41
virtual double getRadius() const =0
Returns the sphere radius.
Itasca Library standard namespace, specific to 2D or 3D.
Definition: icontactmodule.h:4
One stop include for all objects defined as part of base interface.
DVect3 DVect
Vector of doubles, either 2D or 3D.
Definition: dim.h:145