Class Vec2.Immutable

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Float getX()
      Unit setX(Float x)
      Float getY()
      Unit setY(Float y)
      Float getMagnitude2() Magnitude² (squared) of the vector
      Float getMagnitude() Magnitude of the vector.
      • Methods inherited from class org.polyfrost.polyui.unit.Vec2

        compareTo, compareTo, equals, get, getHasZero, getHeight, getWidth, hashCode, isNegative, isZero, max, min, minusAssign, normalize, plus, plusAssign, resize, scale, set, set, setHeight, setWidth, timesAssign, timesAssign, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait