Packages

object MathUtils

Utility class that offers math related useful methods

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MathUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def areaToRadius(area: Double): Double

    Return the radius of a circle of a given area

    Return the radius of a circle of a given area

    area

    the area

    returns

    the radius

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def circleArea(radius: Double): Double

    Returns the area of a circle of a given radius

    Returns the area of a circle of a given radius

    radius

    the radius

    returns

    area

  7. def clamp(value: Double, min: Double, max: Double): Double

    Method which limits a value between a minimum and a maximum ones

    Method which limits a value between a minimum and a maximum ones

    value

    the value

    min

    the minimum value

    max

    the maximum value

    returns

    the clamped value

  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def euclideanDistance(point1: Point, point2: Point): Double

    Returns the Euclidean distance in 2D space

    Returns the Euclidean distance in 2D space

    point1

    first point

    point2

    second point

    returns

    Euclidean distance

  12. def euclideanDistance(position1: PositionComponent, position2: PositionComponent): Double

    Returns the Euclidean distance in 2D space

    Returns the Euclidean distance in 2D space

    position1

    first position

    position2

    second position

    returns

    Euclidean distance

  13. def euclideanDistanceSq(point1: Point, point2: Point): Double

    Returns the square of Euclidean distance in 2D space

    Returns the square of Euclidean distance in 2D space

    point1

    first point

    point2

    second point

    returns

    square of Euclidean distance

  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def normalize(number: Double, min: Double, max: Double): Double

    Returns the normalized value of a number between a min and a max

    Returns the normalized value of a number between a min and a max

    number

    the number

    min

    the min number

    max

    the max number

    returns

    the normalized number between min and max

  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def unitVector(point1: Point, point2: Point): Vector

    Returns the unit vector from point2 to point1

    Returns the unit vector from point2 to point1

    point1

    the unit vector's ending point

    point2

    the unit vector's starting point

    returns

    unitVector the unit vector from point2 to point1

  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped