|
Point | abs (Point const &b) |
|
double | angle_between (Point const a, Point const b) |
| compute the angle turning from a to b (signed). More...
|
|
void | assert_close (Matrix const &a, Matrix const &b) |
|
double | atan2 (Point const p) |
|
int | bezier_fit_cubic (Point bezier[], Point const data[], int len, double error) |
|
int | bezier_fit_cubic_full (Point bezier[], int split_points[], Point const data[], int len, Point const &tHat1, Point const &tHat2, double error, unsigned max_beziers) |
|
int | bezier_fit_cubic_r (Point bezier[], Point const data[], int len, double error, unsigned max_beziers) |
|
Point | bezier_pt (unsigned degree, Point const V[], double t) |
|
Coord | cross (Point const &a, Point const &b) |
| Defined as dot(a, b.cw()). More...
|
|
template<typename iterator > |
static void | cubic_bezier_poly_coeff (iterator b, Point *pc) |
|
Point | darray_left_tangent (Point const d[], unsigned const len) |
|
Point | darray_left_tangent (Point const d[], unsigned const len, double const tolerance_sq) |
|
Point | darray_right_tangent (Point const d[], unsigned const length, double const tolerance_sq) |
|
Coord | dist_sq (Point const &a, Point const &b) |
| compute the square of the distance between points a and b. More...
|
|
Coord | distance (Point const &a, Point const &b) |
| compute the euclidean distance between points a and b. More...
|
|
Coord | dot (Point const &a, Point const &b) |
| compute the dot product (inner product) between the vectors a and b. More...
|
|
Matrix | elliptic_quadratic_form (Matrix const &m) |
| Given a matrix m such that unit_circle = m*x, this returns the quadratic form x*A*x = 1. More...
|
|
double | expansion (Matrix const &m) |
|
Matrix | from_basis (const Point x_basis, const Point y_basis, const Point offset=Point(0, 0)) |
|
Matrix | identity () |
|
bool | is_unit_vector (Point const &p) |
|
bool | is_zero (Point const &p) |
|
Coord | L1 (Point const &p) |
|
Coord | L2 (Point const &p) |
| Compute the L2, or euclidean, norm of p. More...
|
|
Coord | L2sq (Point const &p) |
| Compute the square of L2 norm of p. More...
|
|
Point | Lerp (double const t, Point const a, Point const b) |
| Given two points and a parameter t [0, 1], return a point proportionally from a to b by t. More...
|
|
double | LInfty (Point const &p) |
|
bool | matrix_equalp (Matrix const &m0, Matrix const &m1, Geom::Coord const epsilon) |
|
void | matrix_print (const char *say, Matrix const &m) |
|
bool | operator!= (Matrix const &a, Matrix const &b) |
|
bool | operator!= (Point const &a, Point const &b) |
|
Matrix | operator* (Scale const &s, Translate const &t) |
|
Matrix | operator* (Scale const &s, Matrix const &m) |
|
Point | operator* (Point const &v, Translate const &t) |
|
Matrix | operator* (Rotate const &a, Matrix const &b) |
|
Translate | operator* (Translate const &a, Translate const &b) |
|
Matrix | operator* (Translate const &t, Scale const &s) |
|
Matrix | operator* (Translate const &t, Rotate const &r) |
|
Point | operator* (Point const &p, Scale const &s) |
|
Matrix | operator* (Translate const &t, Matrix const &m) |
|
Scale | operator* (Scale const &a, Scale const &b) |
|
Matrix | operator* (Matrix const &m, Translate const &t) |
|
Matrix | operator* (Matrix const &m, Scale const &s) |
|
Matrix | operator* (Matrix const &m, Rotate const &r) |
|
Point | operator* (Point const &v, Rotate const &r) |
|
Rotate | operator* (Rotate const &a, Rotate const &b) |
|
Point | operator* (double const s, Point const &p) |
|
Point | operator* (Point const &p, double const s) |
|
Matrix | operator* (Matrix const &a, Matrix const &b) |
|
Point | operator* (Point const &v, Matrix const &m) |
|
Point | operator+ (Point const &a, Point const &b) |
|
Point | operator- (Point const &a, Point const &b) |
|
Point | operator- (Point const &a) |
|
Point | operator/ (Point const &v, Translate const &t) |
|
Translate | operator/ (Translate const &a, Translate const &b) |
|
Matrix | operator/ (Translate const &t, Scale const &s) |
|
Matrix | operator/ (Translate const &t, Rotate const &r) |
|
Point | operator/ (Point const &p, Scale const &s) |
|
Scale | operator/ (Scale const &a, Scale const &b) |
|
Matrix | operator/ (Matrix const &m, Scale const &s) |
|
Matrix | operator/ (Matrix const &a, Matrix const &b) |
|
Point | operator/ (Point const &v, Rotate const &r) |
|
Rotate | operator/ (Rotate const &a, Rotate const &b) |
|
Point | operator/ (Point const &p, double const s) |
|
Point | operator/ (double const s, Point const &p) |
|
Point | operator/ (Point const &p, Matrix const &m) |
|
std::ostream & | operator<< (std::ostream &out_file, const Geom::Point &in_pnt) |
| A function to print out the Point. More...
|
|
std::ostream & | operator<< (std::ostream &out_file, const Geom::Matrix &m) |
| A function to print out the Matrix (for debugging) More...
|
|
bool | operator<= (Point const &a, Point const &b) |
| This is a lexicographical ordering for points. More...
|
|
bool | operator== (Matrix const &a, Matrix const &b) |
|
bool | operator== (Point const &a, Point const &b) |
|
Point | operator^ (Point const &a, Point const &b) |
| This is a rotation (sort of). More...
|
|
bool | point_equalp (Point const &a, Point const &b, double const eps) |
|
Point | rot90 (Point const &p) |
| Returns p * Geom::rotate_degrees(90), but more efficient. More...
|
|
bool | rotate_equalp (Geom::Rotate const &a, Geom::Rotate const &b, double const eps) |
|
Translate | to_translate (Matrix const &m) |
|
bool | transform_equalp (Matrix const &m0, Matrix const &m1, Geom::Coord const epsilon) |
|
bool | translate_equalp (Matrix const &m0, Matrix const &m1, Geom::Coord const epsilon) |
|
Point | unit_vector (Point const &a) |
|
Matrix | without_translation (Matrix const &m) |
|