|
|
Point2 | inverse () const |
| | "Inverse" - negates each coordinate such that compose(p,inverse(p)) == identity()
|
| |
|
Point2 | operator- () const |
| | syntactic sugar for inverse, i.e., -p == inverse(p)
|
| |
|
Point2 | compose (const Point2 &q, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none) const |
| | "Compose", just adds the coordinates of two points. With optional derivatives
|
| |
|
Point2 | operator+ (const Point2 &q) const |
| | syntactic sugar for adding two points, i.e., p+q == compose(p,q)
|
| |
|
Point2 | between (const Point2 &q, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none) const |
| | "Between", subtracts point coordinates. between(p,q) == compose(inverse(p),q)
|
| |
|
Point2 | operator- (const Point2 &q) const |
| | syntactic sugar for subtracting points, i.e., q-p == between(p,q)
|
| |
|
static Point2 | identity () |
| | identity
|
| |
|
|
|
| Point2 () |
| | default constructor
|
| |
|
| Point2 (double x, double y) |
| | construct from doubles
|
| |
|
|
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
|
| |
|
|
Point2 | unit () const |
| | creates a unit vector
|
| |
|
double | norm (boost::optional< Matrix & > H=boost::none) const |
| | norm of point
|
| |
|
double | distance (const Point2 &p2, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none) const |
| | distance between two points
|
| |
| double | dist (const Point2 &p2) const |
| |
|
Point2 | operator* (double s) const |
| | multiply with a scalar
|
| |
|
Point2 | operator/ (double q) const |
| | divide by a scalar
|
| |
|
|
bool | operator== (const Point2 &q) const |
| | equality
|
| |
|
double | x () const |
| | get x
|
| |
|
double | y () const |
| | get y
|
| |
|
Vector2 | vector () const |
| | return vectorized form (column-wise). TODO: why does this function exist?
|
| |
|
|
void | operator+= (const Point2 &q) |
| |
|
void | operator*= (double s) |
| |
| virtual Value * | clone_ () const |
| | Create a duplicate object returned as a pointer to the generic Value interface. More...
|
| |
|
virtual void | deallocate_ () const |
| | Destroy and deallocate this object, only if it was originally allocated using clone_().
|
| |
|
virtual boost::shared_ptr< Value > | clone () const |
| | Clone this value (normal clone on the heap, delete with 'delete' operator)
|
| |
|
virtual bool | equals_ (const Value &p, double tol=1e-9) const |
| | equals implementing generic Value interface
|
| |
|
virtual Value * | retract_ (const Vector &delta) const |
| | Generic Value interface version of retract.
|
| |
|
virtual Vector | localCoordinates_ (const Value &value2) const |
| | Generic Value interface version of localCoordinates.
|
| |
|
virtual Value & | operator= (const Value &rhs) |
| | Assignment operator.
|
| |
|
| operator const Point2 & () const |
| | Conversion to the derived class.
|
| |
|
| operator Point2 & () |
| | Conversion to the derived class.
|
| |
|
virtual | ~Value () |
| | Virutal destructor.
|
| |