A class implementing a 3D point. More...
#include <SimmPoint.h>
Public Member Functions | |
SimmPoint () | |
Default constructor. | |
SimmPoint (const SimTK::Vec3 &coords) | |
Constructor from a set of XYZ coordinates. | |
SimmPoint (const SimmPoint &aPoint) | |
Copy constructor. | |
virtual | ~SimmPoint () |
Destructor. | |
virtual Object * | copy () const |
Copy this SimmPoint and return a pointer to the copy. | |
SimmPoint & | operator= (const SimmPoint &aPoint) |
Assignment operator. | |
SimmPoint & | operator+= (const SimmPoint &aPoint) |
Plus-equals operator. | |
SimmPoint & | operator/= (double factor) |
Divide-equals operator. | |
void | set (double x, double y, double z) |
Set the coordinates of the SimmPoint. | |
SimTK::Vec3 & | get () |
void | scale (double aScaleFactor) |
Scale the XYZ coordinates by a scalar. | |
bool | isVisible () const |
Is the SimmPoint visible? It is considered invisible if any coordinate is NAN. |
A class implementing a 3D point.
SimmPoint::SimmPoint | ( | ) |
Default constructor.
SimmPoint::SimmPoint | ( | const SimTK::Vec3 & | coords | ) |
Constructor from a set of XYZ coordinates.
SimmPoint::SimmPoint | ( | const SimmPoint & | aPoint | ) |
Copy constructor.
aPoint | SimmPoint to be copied. |
SimmPoint::~SimmPoint | ( | ) | [virtual] |
Destructor.
Object * SimmPoint::copy | ( | ) | const [virtual] |
Copy this SimmPoint and return a pointer to the copy.
The copy constructor for this class is used.
Reimplemented from OpenSim::Object.
SimTK::Vec3& OpenSim::SimmPoint::get | ( | ) | [inline] |
bool SimmPoint::isVisible | ( | ) | const |
Plus-equals operator.
SimmPoint & SimmPoint::operator/= | ( | double | factor | ) |
Divide-equals operator.
void SimmPoint::scale | ( | double | aScaleFactor | ) |
Scale the XYZ coordinates by a scalar.
The | scale factor. |
void SimmPoint::set | ( | double | x, | |
double | y, | |||
double | z | |||
) |