PM_CARTESIAN − Three-axis cartesian position
#include posemath.h |
||
struct PM_CARTESIAN; |
PM_CARTESIAN()
Construct the point <0,0,0>
PMCARTESIAN(double x, double y, double z)
Construct the point <x,y,z>
PMCARTESIAN(const PM_CARTESIAN &v)
Construct a copy of the point v
double x, y, z
operator[](int n);
Return the nth component of the vector (x=0, y=1, z=2)
int
operator==(PM_CARTESIAN v1, PM_CARTESIAN
v2)
int operator!=(PM_CARTESIAN v1,
PM_CARTESIAN v2)
Elementwise equality and inequality operator
PM_CARTESIAN
operator+(PM_CARTESIAN v1,
PM_CARTESIANv2)
PM_CARTESIAN operator−(PM_CARTESIAN v1,
PM_CARTESIANv2)
Addition and subtraction of vectors
PM_CARTESIAN
operator*(double s, PM_CARTESIAN
v)
PM_CARTESIAN operator*(PM_CARTESIAN v,
double s)
Scalar multiplication
PM_CARTESIAN operator/(PM_CARTESIAN v, double s)
Scalar multiplication by 1/s
double
dot(PM_CARTESIAN v1, PM_CARTESIAN
v2)
PM_CARTESIAN cross(PM_CARTESIAN v1,
PM_CARTESIAN v2)
PM_CARTESIAN norm(PM_CARTESIAN v)