gtsam  4.0.0
gtsam::Point2 Class Reference
+ 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
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
double x () const
 get x
double y () const
 get y
const Vector2 & vector () const
 return vectorized form (column-wise).

Static Public Member Functions

static Point2 identity ()

Public Types

enum  { dimension = 2 }


GTSAM_EXPORT friend std::ostream & operator<< (std::ostream &os, const Point2 &p)

The documentation for this class was generated from the following files: