31 #include <ode-dbl/ode.h>
32 #include <selforg/position.h>
39 Pos (
float x,
float y,
float z) : osg::
Vec3(x, y, z) {}
43 Pos (
const dReal v[3]) : osg::
Vec3(v[0], v[1], v[2]) {}
48 double operator*(
const Pos& p)
const {
return p.x()*x() + p.y()*y() + p.z()*z();}
57 std::cout <<
'(' << x() <<
',' << y() <<
',' << z() <<
')' << std::endl;
Pos operator*(double f) const
scaling
Definition: pos.h:46
Position toPosition()
Definition: pos.h:52
Pos(const Position &p)
Definition: pos.h:42
Definition: position.h:30
Pos(const osg::Vec3 &v)
Definition: pos.h:40
Vec3f Vec3
Definition: osgforwarddecl.h:42
double operator*(const Pos &p) const
scalar product
Definition: pos.h:48
Pos(float x, float y, float z)
Definition: pos.h:39
void print() const
Definition: pos.h:56
Pos(const osg::Vec4 &v)
Definition: pos.h:41
Pos()
Definition: pos.h:38
Pos operator&(const Pos &p) const
componentwise product
Definition: pos.h:50
Vec4f Vec4
Definition: osgforwarddecl.h:44
Pos(const dReal v[3])
Definition: pos.h:43