Line.
More...
#include <modm/math/geometry/line_2d.hpp>
|
| Line2D () |
| Default-Constructor.
|
|
| Line2D (const Vector< T, 2 > &point, const Vector< T, 2 > &directionVector) |
| Construct a line. More...
|
|
void | setPoint (const Vector< T, 2 > &point) |
|
const Vector< T, 2 > & | getPoint () const |
|
void | setDirectionVector (const Vector< T, 2 > &vector) |
|
const Vector< T, 2 > & | getDirectionVector () const |
|
void | set (const Vector< T, 2 > &point, const Vector< T, 2 > &directionVector) |
|
T | getDistanceTo (const Vector< T, 2 > &point) const |
| Shortest distance to a point.
|
|
bool | getIntersections (const Line2D &other, PointSet2D< T > &intersections) const |
| Calculate intersection point(s) More...
|
|
bool | getIntersections (const Circle2D< T > &circle, PointSet2D< T > &intersections) const |
| Calculate intersection point(s) More...
|
|
template<typename T>
class modm::Line2D< T >
Line.
- Author
- Fabian Greif
template<typename T >
modm::Line2D< T >::Line2D |
( |
const Vector< T, 2 > & |
point, |
|
|
const Vector< T, 2 > & |
directionVector |
|
) |
| |
Construct a line.
- Parameters
-
point | a point on the line |
directionVector | direction vector, the length doesn't matter |
template<typename T >
bool modm::Line2D< T >::getIntersections |
( |
const Circle2D< T > & |
circle, |
|
|
PointSet2D< T > & |
intersections |
|
) |
| const |
template<typename T >
bool modm::Line2D< T >::getIntersections |
( |
const Line2D< T > & |
other, |
|
|
PointSet2D< T > & |
intersections |
|
) |
| const |
Calculate intersection point(s)
- Parameters
-
[in] | other | Other line |
[out] | intersections | Intersection point |
The documentation for this class was generated from the following files:
- circle_2d.hpp
- line_2d.hpp