gtsam  4.0.0
gtsam
gtsam::Point3 Class Reference
+ Inheritance diagram for gtsam::Point3:

Public Member Functions

Testable
void print (const std::string &s="") const
 print with optional string
 
bool equals (const Point3 &p, double tol=1e-9) const
 equals with an tolerance
 
Vector Space
double distance (const Point3 &p2, OptionalJacobian< 1, 3 > H1=boost::none, OptionalJacobian< 1, 3 > H2=boost::none) const
 distance between two points
 
double norm (OptionalJacobian< 1, 3 > H=boost::none) const
 Distance of the point from the origin, with Jacobian.
 
Point3 normalized (OptionalJacobian< 3, 3 > H=boost::none) const
 normalize, with optional Jacobian
 
Point3 cross (const Point3 &q, OptionalJacobian< 3, 3 > H_p=boost::none, OptionalJacobian< 3, 3 > H_q=boost::none) const
 cross product More...
 
double dot (const Point3 &q, OptionalJacobian< 1, 3 > H_p=boost::none, OptionalJacobian< 1, 3 > H_q=boost::none) const
 dot product More...
 
Standard Interface
const Vector3 & vector () const
 return as Vector3
 
double x () const
 get x
 
double y () const
 get y
 
double z () const
 get z
 

Static Public Member Functions

Group
static Point3 identity ()
 identity for group operation
 

Public Types

enum  { dimension = 3 }
 

Friends

class boost::serialization::access
 Serialization function.
 
GTSAM_EXPORT friend std::ostream & operator<< (std::ostream &os, const Point3 &p)
 Output stream operator.
 

Member Function Documentation

◆ cross()

Point3 gtsam::Point3::cross ( const Point3 q,
OptionalJacobian< 3, 3 >  H_p = boost::none,
OptionalJacobian< 3, 3 >  H_q = boost::none 
) const

cross product

Returns
this x q

◆ dot()

double gtsam::Point3::dot ( const Point3 q,
OptionalJacobian< 1, 3 >  H_p = boost::none,
OptionalJacobian< 1, 3 >  H_q = boost::none 
) const

dot product

Returns
this * q

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