Itasca C++ Interface
Loading...
Searching...
No Matches
isphere.h
1#pragma once
2
3
4#include "base/src/base.h"
5#include "dim.h"
6
7namespace 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
One stop include for all objects defined as part of base interface.
Interface for the definition of a Sphere.
Definition isphere.h:10
virtual DVect getPosition() const =0
Returns the center of the sphere.
virtual void setPosition(const DVect &v)=0
Sets the center of the sphere.
virtual void setRadius(const double &v, bool lock=false)=0
sets the sphere radius
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition isphere.h:13
virtual double getRadius() const =0
Returns the sphere radius.
DIM - Provides code portability between 2D and 3D codes.
uint32 TType
class type indicator
Definition basedef.h:46
DVect3 DVect
Vector of doubles, either 2D or 3D.
Definition dim.h:154
Itasca Library standard namespace, specific to 2D or 3D.
Definition icontactmodule.h:4