Add OSG_USE_FLOAT_QUAT build option to use single precision quaternions
This commit is contained in:
committed by
Robert Osfield
parent
c548289ac1
commit
12b298130a
@@ -32,7 +32,11 @@ class OSG_EXPORT Quat
|
||||
public:
|
||||
|
||||
/** Data type of vector components.*/
|
||||
#ifdef OSG_USE_FLOAT_QUAT
|
||||
typedef float value_type;
|
||||
#else
|
||||
typedef double value_type;
|
||||
#endif
|
||||
|
||||
/** Number of vector components. */
|
||||
enum { num_components = 4 };
|
||||
|
||||
Reference in New Issue
Block a user