Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
angle_and_norms.hpp
Go to the documentation of this file.
1#ifndef SRC_COMMON_LIB_INCLUDE_COMMON_LIB_MATHS_ANGLE_AND_NORMS_HPP_
2#define SRC_COMMON_LIB_INCLUDE_COMMON_LIB_MATHS_ANGLE_AND_NORMS_HPP_
3
4#include <cmath>
5
7
9
11
17 double angle_;
18 double norm1_;
19 double norm2_;
20 AngleAndNorms() = default;
21 AngleAndNorms(double angle, double norm1, double norm2)
22 : angle_(angle), norm1_(norm1), norm2_(norm2){};
23 AngleAndNorms(const TwoDVector& v1, const TwoDVector& v2);
24};
25
33AngleAndNorms angle_and_norms(const TwoDVector& vector1, const TwoDVector& vector2);
34} // namespace common_lib::maths
35
36#endif // SRC_COMMON_LIB_INCLUDE_COMMON_LIB_MATHS_ANGLE_AND_NORM_HPP_
AngleAndNorms angle_and_norms(const TwoDVector &vector1, const TwoDVector &vector2)
Function used to calculate the angle between two vectors and their norms.
common_lib::structures::Position TwoDVector
structure to store the angle formed between two vectors and their norms
AngleAndNorms(double angle, double norm1, double norm2)