|
Autoware.Auto
|
|
Class describing a polytope in two-dimensional space. More...
#include <geometry.hpp>
Public Member Functions | |
| Polytope2D (const std::vector< Point2D< T >> &vertices) noexcept | |
| Construct a polyhedron. More... | |
| void | rotate_and_shift (const T rotation_angle, const Point2D< T > &rotation_center, const Point2D< T > &shift_vector) |
| Rotate and shift the polytope. More... | |
| bool | contains_point (const Point2D< T > &point) const noexcept |
| Check if polytope contains a point. More... | |
| bool | intersects_with (const Polytope2D< T > &other) const noexcept |
| Check if polytope intersects with another. More... | |
| const std::vector< Halfplane2D< T > > & | get_halfplanes () const noexcept |
| Getter for halfplanes. More... | |
| const std::vector< Point2D< T > > & | get_vertices () const noexcept |
| Getter for vertices. More... | |
Class describing a polytope in two-dimensional space.
|
inlineexplicitnoexcept |
Construct a polyhedron.
| [in] | vertices | vector of vertices, assumed to be "ordered anti-clockwise" with respect to their "center of mass" |
|
inlinenoexcept |
Check if polytope contains a point.
|
inlinenoexcept |
Getter for halfplanes.
|
inlinenoexcept |
Getter for vertices.
|
inlinenoexcept |
Check if polytope intersects with another.
|
inline |
Rotate and shift the polytope.