This is a C++ library used for calculating similarity between angles
Just pull the repository and include AngleSimilarity.h
in your project
This library uses math.h
. Make sure you're using the proper flags when compiling.
The function getSimilarity
takes two angles in degrees and outputs a
value between 0
and 1
that represents the similarity between them.
The function getWeightedValue
takes two angles and a value. It uses
getSimilarity
to calculate the similarity between the angles and multiplies
the result by the value outputting a value between 0
and the value
.
Hristo Kamenov - Revanee
This project is licensed under the MIT License - see the LICENSE.md file for details