#include <vector>
#include <cstddef>
#include <assert.h>
#include <cmath>
Go to the source code of this file.
|
| bool | p2t::cmp (const Point *a, const Point *b) |
| Point | p2t::operator+ (const Point &a, const Point &b) |
| | Add two points_ component-wise.
|
| Point | p2t::operator- (const Point &a, const Point &b) |
| | Subtract two points_ component-wise.
|
| Point | p2t::operator* (double s, const Point &a) |
| | Multiply point by scalar.
|
| bool | p2t::operator== (const Point &a, const Point &b) |
| bool | p2t::operator!= (const Point &a, const Point &b) |
| double | p2t::Dot (const Point &a, const Point &b) |
| | Peform the dot product on two vectors.
|
| double | p2t::Cross (const Point &a, const Point &b) |
| | Perform the cross product on two vectors. In 2D this produces a scalar.
|
| Point | p2t::Cross (const Point &a, double s) |
| Point | p2t::Cross (const double s, const Point &a) |