MathfEx.cs 440 B

123456789101112131415161718192021
  1. #if UNITY_EDITOR
  2. using UnityEngine;
  3. namespace O3DWB
  4. {
  5. public static class MathfEx
  6. {
  7. #region Pulbic Static Functions
  8. public static float Max(float v1, float v2, float v3)
  9. {
  10. return Mathf.Max(Mathf.Max(v1, v2), v3);
  11. }
  12. public static float Min(float v1, float v2, float v3)
  13. {
  14. return Mathf.Min(Mathf.Min(v1, v2), v3);
  15. }
  16. #endregion
  17. }
  18. }
  19. #endif