GSLAM
3.0.0
|
Public Member Functions | |
Point2_ (Precision x_, Precision y_) | |
template<typename Scalar > | |
operator Point2_< Scalar > () | |
Precision & | operator[] (int index) const |
Precision | norm () const |
Point2_< Precision > | normalize () const |
Precision | dot (const Point2_ &a) const |
Precision | at (int i) const |
Precision | getX () const |
Precision | getY () const |
void | setX (Precision X) |
void | setY (Precision Y) |
Point2_< Precision > | add (const Point2_< Precision > &r) const |
Point2_< Precision > | sub (const Point2_< Precision > &r) const |
Point2_< Precision > | mul (Precision r) const |
Point2_< Precision > | div (Precision r) const |
std::string | toString () const |
Public Attributes | |
Precision | x |
Precision | y |
Friends | |
Point2_ | operator+ (const Point2_ &a, const Point2_ &b) |
Point2_ | operator- (const Point2_ &a, const Point2_ &b) |
Point2_ | operator- (const Point2_ &a) |
Precision | operator* (const Point2_ &a, const Point2_ &b) |
Point2_ | operator* (const Precision &a, const Point2_ &b) |
Point2_ | operator* (const Point2_ &b, const Precision &a) |
Point2_ | operator/ (const Point2_ &a, const Precision &b) |
std::ostream & | operator<< (std::ostream &os, const Point2_ &p) |
std::istream & | operator>> (std::istream &is, Point2_ &p) |