PM_ROTATION_VECTOR.3
1 .TH funct "3" "2006-10-12" "LinuxCNC Documentation" "libposemath" 2 .de TQ 3 .br 4 .ns 5 .TP \\$1 6 .. 7 .SH NAME 8 9 PM_CARTESIAN \- Three-axis cartesian position 10 11 .SH SYNTAX 12 .HP 13 .B #include "posemath.h" 14 .HP 15 .B struct PM_CARTESIAN; 16 17 .SH CONSTRUCTORS 18 .TP 19 .B PM_CARTESIAN() 20 Construct the point <0,0,0> 21 .TP 22 .B PMCARTESIAN(double \fIx\fB, double \fIy\fB, double \fIz\fB) 23 Construct the point <\fIx\fB,\fIy\fB,\fIz\fB> 24 .TP 25 .B PMCARTESIAN(const PM_CARTESIAN &v) 26 Construct a copy of the point \fIv\fR 27 28 .SH DATA 29 .B double \fIx\fB, \fIy\fB, \fIz 30 31 .SH OPERATORS 32 .TP 33 .B operator[](int n); 34 Return the \fIn\fRth component of the vector (x=0, y=1, z=2) 35 .TP 36 .B int operator==(PM_CARTESIAN \fIv1\fB, PM_CARTESIAN \fIv2\fB) 37 .TQ 38 .B int operator!=(PM_CARTESIAN \fIv1\fB, PM_CARTESIAN \fIv2\fB) 39 Elementwise equality and inequality operator 40 .TP 41 .B PM_CARTESIAN operator+(PM_CARTESIAN \fIv1\fB, PM_CARTESIAN\fIv2\fB) 42 .TQ 43 .B PM_CARTESIAN operator\-(PM_CARTESIAN \fIv1\fB, PM_CARTESIAN\fIv2\fB) 44 Addition and subtraction of vectors 45 .TP 46 .B PM_CARTESIAN operator*(double \fIs\fB, PM_CARTESIAN \fIv\fB) 47 .TQ 48 .B PM_CARTESIAN operator*(PM_CARTESIAN \fIv\fB, double \fIs\fB) 49 Scalar multiplication 50 .TP 51 .B PM_CARTESIAN operator/(PM_CARTESIAN \fIv\fB, double \fIs\fB) 52 Scalar multiplication by \fI1/s\fR 53 .SH OTHER FUNCTIONS ON PM_CARTESIAN OBJECTS 54 .TP 55 .B double dot(PM_CARTESIAN \fIv1\fB, PM_CARTESIAN \fIv2\fB) 56 .TQ 57 .B PM_CARTESIAN cross(PM_CARTESIAN \fIv1\fB, PM_CARTESIAN \fIv2\fB) 58 .TQ 59 .B PM_CARTESIAN norm(PM_CARTESIAN \fIv\fB) 60 61 .SH SEE ALSO