A point on a manifold. More...
#include <geometry.h>
Public Member Functions | |
| Point () | |
| Default constructor - initializes the point with an invalid coordinate system. | |
| Point (int cS, double x0=0.0, double x1=0.0, double x2=0.0, double x3=0.0) | |
| Constructor. More... | |
| Point (int cS, double tx[]) | |
| Constructor. More... | |
| Point (int cS, vector4 v) | |
| Constructor. More... | |
| Point (const Point &) | |
| Copy constructor. | |
| ~Point () | |
| Destructor. | |
| double & | operator[] (int i) |
| Index operator. More... | |
| int | getCoordSystem () |
| Function returning the coordinate system. | |
| vector4 | toVector4 () |
| Conversion to vector4. | |
| bool | operator== (Point) |
| bool | operator!= (Point) |
Static Public Member Functions | |
| static void | setGlobalManifold (Manifold *_m) |
| Static method setting the global manifold variable. | |
A point on a manifold.
The class defines a point on the manifold using 4 coordinates and the number of the coordinate system being used. This allows for two points from different coordinate systems to be compared.
| Point::Point | ( | int | cS, |
| double | x0 = 0.0, |
||
| double | x1 = 0.0, |
||
| double | x2 = 0.0, |
||
| double | x3 = 0.0 |
||
| ) |
Constructor.
| cS | Coordinate system being used |
| x0 | First coordinate |
| x1 | Second coordinate |
| x2 | Third coordinate |
| x3 | Fourth coordinate |
| Point::Point | ( | int | cS, |
| double | tx[] | ||
| ) |
Constructor.
| cS | Coordinate system being used |
| tx | Array of coordinates |
| Point::Point | ( | int | cS, |
| vector4 | v | ||
| ) |
Constructor.
| cS | Coordinate system being used |
| v | A vector4 containing the coordinates |
| double & Point::operator[] | ( | int | i | ) |
Index operator.
| i | Number of the coordinate to retrieve |
1.8.3.1