toDeg and toRad

This commit is contained in:
2020-10-22 17:45:42 +03:00
parent fbe850abf0
commit 91c1487a7e
2 changed files with 7 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ public:
return std::sqrt(Type(1) - tv * tv);
}
Type angleRad(const _CVector & v) const {return std::acos(angleCos(v));}
Type angleDeg(const _CVector & v) const {return toDeg<Type>(angleRad(v));}
Type angleDeg(const _CVector & v) const {return toDeg(angleRad(v));}
Type angleElevation(const _CVector & v) const {return 90.0 - angleDeg(v - *this);}
_CVector projection(const _CVector & v) {
Type tv = v.length();