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