37 std::string
name()
const {
return "a_wrench";}
39 static const std::string
help();
41 void set(
const a_point& p, a_point
f,
double m = 0);
43 void set(
double x,
double y,
double z,
double fx,
double fy,
double fz,
double m = 0);
45 a_wrench(
const a_point& p, a_point
f,
double m = 0);
47 a_wrench(
double x,
double y,
double z,
double fx,
double fy,
double fz,
double m = 0);
51 inline a_point
F()
const {
return p1_;}
53 inline double fx()
const {
return p1_.x();}
55 inline double fy()
const {
return p1_.y();}
57 inline double fz()
const {
return p1_.z();}
59 inline a_point
M()
const {
return p2_;}
61 inline double mx()
const {
return p2_.x();}
63 inline double my()
const {
return p2_.y();}
65 inline double mz()
const {
return p2_.z();}
67 inline double f()
const {
return p1_.norm();}
69 inline double m()
const {
return p2_.norm();}
71 a_point
pierce(
const a_plane& p)
const;
82 a_point
torque(
const a_point& p)
const;
84 double torque(
const a_point& p,
const a_point& n)
const;
virtual a_plucker operator+(const a_plucker &a)
void set(const a_point &p, a_point f, double m=0)
apply a force f at p, possibly with a moment having same direction
double fx() const
force at the origin (x component)
double mz() const
torque at the origin (z component)
double my() const
torque at the origin (y component)
a_wrench(const a_plucker &m)
copy constructor
double fz() const
force at the origin (z component)
double f() const
force at the origin
static const std::string help()
get information about the class
a_point torque(const a_point &p) const
torque at p
double fy() const
force at the origin (y component)
void origin(a_point p)
change origin
a_point d0() const
point where wrench reduces to a pure force, return origin if f=0
a_point pierce(const a_plane &p) const
intersection with a plane
a_wrench operator+(const a_wrench &a)
double m() const
torque at the origin
a_wrench operator-(const a_wrench &a)
double mx() const
torque at the origin (x component)