Class Vector3f


  • public class Vector3f
    extends Object
    • Field Detail

      • FORWARD

        public static final Vector3f FORWARD
      • x

        public float x
      • y

        public float y
      • z

        public float z
    • Constructor Detail

      • Vector3f

        public Vector3f()
      • Vector3f

        public Vector3f​(float x,
                        float y,
                        float z)
      • Vector3f

        public Vector3f​(Vector3f origin)
    • Method Detail

      • set

        public void set​(float x,
                        float y,
                        float z)
      • set

        public void set​(Vector3f origin)
      • setZero

        public void setZero()
      • normalize

        public void normalize()
      • add

        public void add​(Vector3f other)
      • add

        public void add​(float x,
                        float y,
                        float z)
      • sub

        public void sub​(Vector3f other)
      • dot

        public float dot​(Vector3f other)
      • cross

        public void cross​(Vector3f other)
      • magnitude

        public float magnitude()
      • scale

        public void scale​(float scale)