|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
Classes | |
| class | CoolLerp |
| struct | Range |
| struct | Vector2D |
Typedefs | |
| template<uint16_t ROWS, uint16_t COLS> | |
| using | Matrix = tap::algorithms::CMSISMat< ROWS, COLS > |
| using | AbstractVector2D = math::Vector2D< double > |
Functions | |
| template<typename Unit > | |
| Vector2D< Unit > | rotateVector2D (const Vector2D< Unit > &vector, const Radians &rotationAngle) |
| Matrix< 2, 2 > | rotationMatrix2D (const Radians &angle) |
| template<typename ScaleUnit > | |
| Vector2D< ScaleUnit > | operator* (const Vector2D< double > &vector, const ScaleUnit &scale) |
| template<typename ScaleUnit > | |
| Vector2D< ScaleUnit > | operator* (const ScaleUnit &scale, const Vector2D< double > &vector) |
| template<typename Unit > | |
| Vector2D< Unit > | operator* (const double &scale, const Vector2D< Unit > &vector) |
| using fang::math::AbstractVector2D = typedef math::Vector2D<double> |
| using fang::math::Matrix = typedef tap::algorithms::CMSISMat<ROWS, COLS> |
| Vector2D< Unit > fang::math::operator* | ( | const double & | scale, |
| const Vector2D< Unit > & | vector | ||
| ) |
| Vector2D< ScaleUnit > fang::math::operator* | ( | const ScaleUnit & | scale, |
| const Vector2D< double > & | vector | ||
| ) |
| Vector2D< ScaleUnit > fang::math::operator* | ( | const Vector2D< double > & | vector, |
| const ScaleUnit & | scale | ||
| ) |
| Vector2D< Unit > fang::math::rotateVector2D | ( | const Vector2D< Unit > & | vector, |
| const Radians & | rotationAngle | ||
| ) |
This algorithm has an accuracy of within 1e-14; however, rotating the vector back will produce accuracy to only within 1e-10