Added scaling support
This commit is contained in:
parent
51772a1843
commit
18cf653aff
7
Angle.h
7
Angle.h
@ -36,6 +36,13 @@ class AngleOf {
|
||||
AngleOf<T> operator-(const AngleOf<T>& a) const;
|
||||
AngleOf<T> operator+(const AngleOf<T>& a) const;
|
||||
|
||||
friend AngleOf<T> operator*(const AngleOf<T>& a, float f) {
|
||||
return AngleOf((float)a.ToFloat() * f);
|
||||
}
|
||||
friend AngleOf<T> operator*(float f, const AngleOf<T>& a) {
|
||||
return AngleOf((float)f * a.ToFloat());
|
||||
}
|
||||
|
||||
static AngleOf<T> Normalize(AngleOf<T> a);
|
||||
static AngleOf<T> Clamp(AngleOf<T> a, AngleOf<T> min, AngleOf<T> max);
|
||||
static AngleOf<T> Difference(AngleOf<T> a, AngleOf<T> b) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user