Add Asin and Atan
This commit is contained in:
parent
a646e936ee
commit
09e25a8a21
10
Angle.cpp
10
Angle.cpp
@ -213,9 +213,17 @@ float AngleOf<T>::Tan(AngleOf<T> a) {
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
AngleOf<T> Passer::LinearAlgebra::AngleOf<T>::Acos(float f) {
|
||||
AngleOf<T> AngleOf<T>::Acos(float f) {
|
||||
return AngleOf<T>::Radians(acosf(f));
|
||||
}
|
||||
template <typename T>
|
||||
AngleOf<T> AngleOf<T>::Asin(float f) {
|
||||
return AngleOf<T>::Radians(asinf(f));
|
||||
}
|
||||
template <typename T>
|
||||
AngleOf<T> AngleOf<T>::Atan(float f) {
|
||||
return AngleOf<T>::Radians(atanf(f));
|
||||
}
|
||||
|
||||
template <>
|
||||
AngleOf<float> AngleOf<float>::CosineRuleSide(float a,
|
||||
|
2
Angle.h
2
Angle.h
@ -64,6 +64,8 @@ class AngleOf {
|
||||
static float Tan(AngleOf<T> a);
|
||||
|
||||
static AngleOf<T> Acos(float f);
|
||||
static AngleOf<T> Asin(float f);
|
||||
static AngleOf<T> Atan(float f);
|
||||
|
||||
static AngleOf<T> CosineRuleSide(float a, float b, AngleOf<T> gamma);
|
||||
static AngleOf<T> CosineRuleAngle(float a, float b, float c);
|
||||
|
Loading…
x
Reference in New Issue
Block a user