|
gtsam
4.0.0
gtsam
|
Inheritance diagram for gtsam::Point2:Advanced Interface | |
| class | boost::serialization::access |
| Serialization function. | |
Public Member Functions | |
Standard Constructors | |
| Point2 () | |
| default constructor | |
Advanced Constructors | |
| Point2 (const Vector2 &v) | |
| construct from 2D vector | |
Testable | |
| void | print (const std::string &s="") const |
| print with optional string | |
| bool | equals (const Point2 &q, double tol=1e-9) const |
| equals with an tolerance, prints out message if unequal | |
Vector Space | |
| Point2 | unit () const |
| creates a unit vector | |
| double | norm (OptionalJacobian< 1, 2 > H=boost::none) const |
| norm of point, with derivative | |
| double | distance (const Point2 &p2, OptionalJacobian< 1, 2 > H1=boost::none, OptionalJacobian< 1, 2 > H2=boost::none) const |
| distance between two points | |
Standard Interface | |
| bool | operator== (const Point2 &q) const |
| equality | |
| double | x () const |
| get x | |
| double | y () const |
| get y | |
| const Vector2 & | vector () const |
| return vectorized form (column-wise). | |
Static Public Member Functions | |
Group | |
| static Point2 | identity () |
| identity | |
Public Types | |
| enum | { dimension = 2 } |
Friends | |
| GTSAM_EXPORT friend std::ostream & | operator<< (std::ostream &os, const Point2 &p) |
| Streaming. | |