summaryrefslogtreecommitdiff
path: root/libs/ode-0.16.1/OPCODE/Ice/IceAxes.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-10-01 20:59:36 -0500
committersanine <sanine.not@pm.me>2022-10-01 20:59:36 -0500
commitc5fc66ee58f2c60f2d226868bb1cf5b91badaf53 (patch)
tree277dd280daf10bf77013236b8edfa5f88708c7e0 /libs/ode-0.16.1/OPCODE/Ice/IceAxes.h
parent1cf9cc3408af7008451f9133fb95af66a9697d15 (diff)
add ode
Diffstat (limited to 'libs/ode-0.16.1/OPCODE/Ice/IceAxes.h')
-rw-r--r--libs/ode-0.16.1/OPCODE/Ice/IceAxes.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/libs/ode-0.16.1/OPCODE/Ice/IceAxes.h b/libs/ode-0.16.1/OPCODE/Ice/IceAxes.h
new file mode 100644
index 0000000..8af57e1
--- /dev/null
+++ b/libs/ode-0.16.1/OPCODE/Ice/IceAxes.h
@@ -0,0 +1,54 @@
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+/**
+ * Contains axes definition.
+ * \file IceAxes.h
+ * \author Pierre Terdiman
+ * \date January, 29, 2000
+ */
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// Include Guard
+#ifndef __ICEAXES_H__
+#define __ICEAXES_H__
+
+ enum PointComponent
+ {
+ X = 0,
+ Y = 1,
+ Z = 2,
+ W = 3,
+
+ FORCE_DWORD = 0x7fffffff
+ };
+
+ enum AxisOrder
+ {
+ AXES_XYZ = (X)|(Y<<2)|(Z<<4),
+ AXES_XZY = (X)|(Z<<2)|(Y<<4),
+ AXES_YXZ = (Y)|(X<<2)|(Z<<4),
+ AXES_YZX = (Y)|(Z<<2)|(X<<4),
+ AXES_ZXY = (Z)|(X<<2)|(Y<<4),
+ AXES_ZYX = (Z)|(Y<<2)|(X<<4),
+
+ AXES_FORCE_DWORD = 0x7fffffff
+ };
+
+ class ICEMATHS_API Axes
+ {
+ public:
+
+ inline_ Axes(AxisOrder order)
+ {
+ mAxis0 = (order ) & 3;
+ mAxis1 = (order>>2) & 3;
+ mAxis2 = (order>>4) & 3;
+ }
+ inline_ ~Axes() {}
+
+ udword mAxis0;
+ udword mAxis1;
+ udword mAxis2;
+ };
+
+#endif // __ICEAXES_H__