|
@@ -82,6 +82,14 @@ Type Lerp(float t, Type v0, Type v1)
|
|
|
return v0 * (1.0f - t) + v1 * t;
|
|
return v0 * (1.0f - t) + v1 * t;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/// Element-wise maximum.
|
|
|
|
|
+template <>
|
|
|
|
|
+RMLUICORE_API Vector2f Max<Vector2f>(Vector2f a, Vector2f b);
|
|
|
|
|
+/// Element-wise minimum.
|
|
|
|
|
+template <>
|
|
|
|
|
+RMLUICORE_API Vector2f Min<Vector2f>(Vector2f a, Vector2f b);
|
|
|
|
|
+
|
|
|
|
|
+/// Color interpolation.
|
|
|
RMLUICORE_API Colourb RoundedLerp(float t, Colourb c0, Colourb c1);
|
|
RMLUICORE_API Colourb RoundedLerp(float t, Colourb c0, Colourb c1);
|
|
|
|
|
|
|
|
/// Evaluates if a number is, or close to, zero.
|
|
/// Evaluates if a number is, or close to, zero.
|