29 #include <ode-dbl/ode.h>
39 Axis (
float x,
float y,
float z) : osg::
Vec4(x, y, z, 0) {}
42 Axis (
const dReal v[3]) : osg::
Vec4(v[0], v[1], v[2], 0) {}
47 return acos((*
this * a)/(this->length() * a.length()));
51 return Axis(y()*a.z() - z()*a.y(), z()*a.x() - x()*a.z(), x()*a.y() - y()*a.x());
55 std::cout <<
'(' << x() <<
',' << y() <<
',' << z() <<
')' << std::endl;
Axis crossProduct(const Axis &a) const
Definition: axis.h:50
Axis(const osg::Vec4 &v)
Definition: axis.h:40
Axis(float x, float y, float z)
Definition: axis.h:39
Axis(const osg::Vec3 &v)
Definition: axis.h:41
Vec3f Vec3
Definition: osgforwarddecl.h:42
void print()
Definition: axis.h:54
float enclosingAngle(const Axis &a) const
Definition: axis.h:46
Axis()
Definition: axis.h:38
Vec4f Vec4
Definition: osgforwarddecl.h:44
osg::Vec3 vec3() const
Definition: axis.h:44
Axis(const dReal v[3])
Definition: axis.h:42