|
gtsam 4.2
gtsam
|
General Wall class for walls defined around unordered endpoints Primarily to handle ray intersections.
Public Member Functions | |
| SimWall2D () | |
| default constructor makes canonical wall | |
| SimWall2D (const Point2 &a, const Point2 &b) | |
| constructors using endpoints | |
| SimWall2D (double ax, double ay, double bx, double by) | |
| void | print (const std::string &s="") const |
| required by testable | |
| bool | equals (const SimWall2D &other, double tol=1e-9) const |
| Point2 | a () const |
| access | |
| Point2 | b () const |
| SimWall2D | scale (double s) const |
| scales a wall to produce a new wall | |
| double | length () const |
| geometry | |
| Point2 | midpoint () const |
| bool | intersects (const SimWall2D &wall, boost::optional< Point2 & > pt=boost::none) const |
| intersection check between two segments returns true if they intersect, with the intersection point in the optional second argument | |
| Point2 | norm () const |
| norm is a 2D point representing the norm of the wall | |
| Rot2 | reflection (const Point2 &init, const Point2 &intersection) const |
| reflection around a point of impact with a wall from a starting (init) point at a given impact point (intersection), returning the angle away from the impact | |
Protected Attributes | |
| Point2 | a_ |
| Point2 | b_ |