com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class MathUtils

  • java.lang.Object
    • com.aspose.threed.MathUtils


  • public class MathUtils
    extends java.lang.Object
    A set of useful mathematical utilities.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static double clamp(double val, double min, double max)
      Clamp value to range [min, max]
      static double toDegree(double radian)
      Convert a number from radian to degree
      static Vector3 toDegree(double x, double y, double z)
      Convert a number from radian to degree
      static float toDegree(float radian)
      Convert a number from radian to degree
      static Vector3 toDegree(Vector3 radian)
      Convert a Vector3 from radian to degree.
      static double toRadian(double degree)
      Convert a number from degree to radian
      static Vector3 toRadian(double x, double y, double z)
      Convert a vector from degree to radian
      static float toRadian(float degree)
      Convert a number from degree to radian
      static Vector3 toRadian(Vector3 degree)
      Convert a Vector3 from degree to radian
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • clamp

        public static double clamp(double val,
                                   double min,
                                   double max)
        Clamp value to range [min, max]
        Parameters:
        val - Value to clamp.
        min - Minimum value.
        max - Maximum value.
        Returns:
        The value between [min, max]
      • toDegree

        public static Vector3 toDegree(Vector3 radian)
        Convert a Vector3 from radian to degree.
        Parameters:
        radian - The radian value.
        Returns:
        The degree value.
      • toRadian

        public static Vector3 toRadian(Vector3 degree)
        Convert a Vector3 from degree to radian
        Parameters:
        degree - The degree value.
        Returns:
        The radian value.
      • toDegree

        public static float toDegree(float radian)
        Convert a number from radian to degree
        Parameters:
        radian - The radian value.
        Returns:
        The degree value.
      • toDegree

        public static double toDegree(double radian)
        Convert a number from radian to degree
        Parameters:
        radian - The radian value.
        Returns:
        The degree value.
      • toDegree

        public static Vector3 toDegree(double x,
                                       double y,
                                       double z)
        Convert a number from radian to degree
        Parameters:
        x - The x component in radian value.
        y - The y component in radian value.
        z - The z component in radian value.
        Returns:
        The degree value.
      • toRadian

        public static float toRadian(float degree)
        Convert a number from degree to radian
        Parameters:
        degree - The degree value.
        Returns:
        The radian value.
      • toRadian

        public static double toRadian(double degree)
        Convert a number from degree to radian
        Parameters:
        degree - The degree value.
        Returns:
        The radian value.
      • toRadian

        public static Vector3 toRadian(double x,
                                       double y,
                                       double z)
        Convert a vector from degree to radian
        Parameters:
        x - The x component in degree value.
        y - The y component in degree value.
        z - The z component in degree value.
        Returns:
        The radian value.