Geometry is a namespace that define lots of useful geometry functions.
| Coordinates geometry::behindIntersectionOfLines | ( | Coordinates | A, |
| Coordinates | B, | ||
| Coordinates | C, | ||
| Coordinates | D | ||
| ) |
| A | Coordinates of a line point |
| B | Coordinates of another line point |
| C | Coordinates of a line point |
| D | Coordinates of another line point |
| Coordinates geometry::circumcenterOf | ( | Coordinates | A, |
| Coordinates | B, | ||
| Coordinates | C | ||
| ) |
| A | Coordinates of a point of triangle |
| B | Coordinates of a point of triangle |
| C | Coordinates of a point of triangle |
| bool geometry::coeffAndOrdnOfLine | ( | Coordinates | A, |
| Coordinates | B, | ||
| float * | coef, | ||
| float * | ordn | ||
| ) |
| A | Coordinates of a point on the line |
| B | Coordinates of another point on the line |
| coef | ref of float, modified |
| ordn | ref of float, modified |
| bool geometry::collisionBetweenLineAndCircle | ( | Coordinates | A, |
| Coordinates | B, | ||
| Coordinates | C, | ||
| float | radius | ||
| ) |
| A | Coordinates of a line point |
| B | Coordinates of another line point |
| C | Coordinates of circle's center |
| radius | of the circle |
| bool geometry::collisionBetweenSegmentAndCircle | ( | Coordinates | A, |
| Coordinates | B, | ||
| Coordinates | C, | ||
| float | radius | ||
| ) |
| A | Coordinates of segment point |
| B | Coordinates of segment point |
| C | Coordinates of circle's center |
| radius | of the circle |
| bool geometry::collisionBetweenSegmentAndLine | ( | Coordinates | O, |
| Coordinates | P, | ||
| Coordinates | A, | ||
| Coordinates | B | ||
| ) |
| O | Coordinates of a segment point |
| P | Coordinates of another segment point |
| A | Coordinates of a line point |
| B | Coordinates of another line point |
| bool geometry::collisionBetweenSegmentAndSegment | ( | Coordinates | A, |
| Coordinates | B, | ||
| Coordinates | C, | ||
| Coordinates | D | ||
| ) |
| A | Coordinates of a first segment point |
| B | Coordinates of another first segment point |
| C | Coordinates of a second segment point |
| D | Coordinates of another second segment point |
| Coordinates geometry::intersectionOfLines | ( | Coordinates | A, |
| Coordinates | B, | ||
| Coordinates | C, | ||
| Coordinates | D | ||
| ) |
| A | Coordinates of a line point |
| B | Coordinates of another line point |
| C | Coordinates of a line point |
| D | Coordinates of another line point |
| unsigned int geometry::intersectionsBetweenLineAndCircle | ( | Coordinates | A, |
| Coordinates | B, | ||
| Coordinates | C, | ||
| float | square_radius, | ||
| Coordinates * | S1, | ||
| Coordinates * | S2 | ||
| ) |
| A | Coordinates of a point on the line |
| B | Coordinates of another point on the line |
| C | Coordinates of center of circle |
| square_radius | of the circle |
| S1 | reference to Coordinates of the first find point of intersection between cricle and line |
| S2 | reference to Coordinates of the second find point |
| unsigned int geometry::intersectionsBetweenSegmentAndCircle | ( | Coordinates | A, |
| Coordinates | B, | ||
| Coordinates | C, | ||
| float | square_radius, | ||
| Coordinates * | S1, | ||
| Coordinates * | S2 | ||
| ) |
| A | Coordinates of extremity of [AB] |
| B | Coordinates of extremity of [AB] |
| C | Coordinates of center of circle |
| square_radius | of the circle |
| S1 | reference to Coordinates of the first find point of intersection between cricle and [AB] |
| S2 | reference to Coordinates of the second find point |
| bool geometry::parallelLines | ( | Coordinates | A, |
| Coordinates | B, | ||
| Coordinates | C, | ||
| Coordinates | D | ||
| ) |
| A | Coordinates of a line point |
| B | Coordinates of another line point |
| C | Coordinates of a line point |
| D | Coordinates of another line point |
| bool geometry::pointInCircumcircleOf | ( | Coordinates | p1, |
| Coordinates | p2, | ||
| Coordinates | p3, | ||
| Coordinates | p0 | ||
| ) |
| p1 | Coordinates of a point of triangle |
| p2 | Coordinates of a point of triangle |
| p3 | Coordinates of a point of triangle |
| p0 | Coordinates of tested point |
| bool geometry::pointInsideCircle | ( | Coordinates | A, |
| Coordinates | C, | ||
| float | radius | ||
| ) |
| A | Coordinates of tested point |
| C | Coordinates of circle's center |
| radius | of the circle |
| bool geometry::pointInTriangle | ( | Coordinates | p1, |
| Coordinates | p2, | ||
| Coordinates | p3, | ||
| Coordinates | p0 | ||
| ) |
| p1 | Coordinates of a point of triangle |
| p2 | Coordinates of a point of triangle |
| p3 | Coordinates of a point of triangle |
| p0 | Coordinates of tested point |
| bool geometry::pointOnCircle | ( | Coordinates | A, |
| Coordinates | C, | ||
| float | radius | ||
| ) |
| A | Coordinates of tested point |
| C | Coordinates of circle's center |
| radius | of the circle |
| Coordinates geometry::projectionOfPointOnLine | ( | Coordinates | A, |
| Coordinates | B, | ||
| Coordinates | C | ||
| ) |
| A | a point on the line |
| B | another point on the line |
| C | the evaluated point |
| float geometry::squareDistanceBetweenPoints | ( | Coordinates | A, |
| Coordinates | B | ||
| ) |
| A | Coordinates of a point of triangle |
| B | Coordinates of a point of triangle |
| float geometry::squareDistanceBetweenPoints | ( | float | x1, |
| float | y1, | ||
| float | x2, | ||
| float | y2 | ||
| ) |
| x1 | coordinate in x for first point |
| y1 | coordinate in y for first point |
| x2 | coordinate in x for second point |
| y2 | coordinate in y for second point |
| float geometry::squareDistanceBetweenSegmentAndPoint | ( | float | x1, |
| float | y1, | ||
| float | x2, | ||
| float | y2, | ||
| float | px, | ||
| float | py | ||
| ) |
| x1 | coordinate in x for first point of segment |
| y1 | coordinate in y for first point of segment |
| x2 | coordinate in x for second point of segment |
| y2 | coordinate in y for second point of segment |
| px | coordinate in x of tested point |
| py | coordinate in y of tested point |
| void geometry::unit_tests | ( | ) |
call that once for verify integrity of geometry fonctions
1.8.1.2