18 lines
355 B
C++
18 lines
355 B
C++
#ifndef DISCRETEANGLE_H
|
|
#define DISCRETEANGLE_H
|
|
|
|
#include "Range.h"
|
|
|
|
// A fixed angle between (-180..180]
|
|
|
|
template <typename T> class AngleUsing : RangeUsing<T> {
|
|
public:
|
|
AngleUsing(T sourceValue);
|
|
float ToFloat();
|
|
inline T GetValue() { return this->value; }
|
|
};
|
|
|
|
#endif
|
|
|
|
template <typename T> inline float AngleUsing<T>::ToFloat() { return 0.0f; }
|