funct

NAME
SYNTAX
CONSTRUCTORS
DATA
OPERATORS
OTHER FUNCTIONS ON PM_CARTESIAN OBJECTS
SEE ALSO

NAME

PM_CARTESIAN − Three-axis cartesian position

SYNTAX

#include posemath.h

struct PM_CARTESIAN;

CONSTRUCTORS

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

DATA

double x, y, z

OPERATORS

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

OTHER FUNCTIONS ON PM_CARTESIAN OBJECTS

double dot(PM_CARTESIAN v1, PM_CARTESIAN v2)
PM_CARTESIAN cross(PM_CARTESIAN
v1, PM_CARTESIAN v2)
PM_CARTESIAN norm(PM_CARTESIAN
v)

SEE ALSO