|
Autoware.Auto
|
|
Class describing a point in two-dimensional space. More...
#include <geometry.hpp>
Public Member Functions | |
| Point2D () noexcept | |
| No-argument constructor. More... | |
| Point2D (T x, T y) noexcept | |
| Scalar type Constructor. More... | |
| bool | operator== (const Point2D< T > &other) const noexcept |
| Check for equality of two points. More... | |
| Point2D< T > | operator+ (const Point2D< T > &other) const noexcept |
| Add two points. More... | |
| Point2D< T > | operator- (const Point2D< T > &other) const noexcept |
| Subtract one point from the other. More... | |
| Point2D< T > | operator/ (const T dividend) const |
| Divide by a constant. More... | |
| Point2D< T > | operator* (const T multiplier) const noexcept |
| Multiply by something. More... | |
| T | norm2 () const noexcept |
| Compute the 2-norm of a point (as in, the distance to the origin) More... | |
| T | dot (const Point2D< T > &other) const noexcept |
| Perform inner-product. More... | |
| void | rotate (const T angle) noexcept |
| Rotate around the origin. More... | |
| const std::pair< T, T > & | get_coord () const noexcept |
| Get the coordinates. More... | |
Class describing a point in two-dimensional space.
|
inlinenoexcept |
No-argument constructor.
|
inlinenoexcept |
Scalar type Constructor.
|
inlinenoexcept |
Perform inner-product.
|
inlinenoexcept |
Get the coordinates.
|
inlinenoexcept |
Compute the 2-norm of a point (as in, the distance to the origin)
|
inlinenoexcept |
Multiply by something.
|
inlinenoexcept |
Add two points.
|
inlinenoexcept |
Subtract one point from the other.
|
inline |
Divide by a constant.
|
inlinenoexcept |
Check for equality of two points.
|
inlinenoexcept |
Rotate around the origin.