Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 976 vs 979 for /trunk/Source Code/Core/Math/Headers/MathHelper.h

Diff revisions: vs.
  @@ -121,6 +121,11 @@
121 121 return MAP(input, in_min, in_max, out_min, out_max, slope);
122 122 }
123 123
124 + template <typename T>
125 + T NORMALIZE(T input, const T range_min, const T range_max) {
126 + return MAP<T>(input, range_min, range_max, T(0), T(1));
127 + }
128 +
124 129 U32 nextPOW2(U32 n);
125 130
126 131 // Calculate the smalles NxN matrix that can hold the specified
  @@ -368,6 +373,7 @@
368 373 template <typename U, typename T>
369 374 U ConvertData(const T& data);
370 375
376 +
371 377 /** Ogre3D
372 378 @brief Normalise the selected rotations to be within the +/-180 degree range.
373 379 @details The normalise uses a wrap around,