38 virtual const std::string
classname() {
return "a_plane";}
39 static const std::string
help();
43 double d0()
const {
return this->
Z();}
44 void d0(
const double d) {this->
Z(d);}
63 virtual void read(std::istream &i);
64 virtual void write(std::ostream &o)
const;
an homogeneous 3d matrix class
a coordinate system in the Points&Forces file format
bool contains(const a_point &p) const
check whether point is in plane
friend std::ostream & operator<<(std::ostream &o, const a_plane &m)
static const std::string help()
a_plane(const a_plane &p)
virtual const std::string classname()
virtual void read(std::istream &i)
double d0() const
closest distance to origin
double dist(const a_point &p) const
distance between p and plane
friend std::istream & operator>>(std::istream &i, a_plane &m)
a_point intersect(const a_segment &s) const
intersection of plane with a segment
a_point closest(const a_point &p) const
point on the plane closest to p
virtual void write(std::ostream &o) const
a_point p0() const
closest point to origin
a_point n() const
normal to the plane (direction: given by rotation p1-p2-p3)