Module gomint.api

Class Vector2


  • public class Vector2
    extends Object
    Version:
    1.0
    Author:
    geNAZt
    • Field Detail

      • ZERO

        public static final Vector2 ZERO
    • Constructor Detail

      • Vector2

        public Vector2​(float x,
                       float z)
    • Method Detail

      • getDirection2D

        public static Vector2 getDirection2D​(double angle)
      • add

        public Vector2 add​(float x,
                           float z)
      • subtract

        public Vector2 subtract​(float x,
                                float z)
      • divide

        public Vector2 divide​(float v)
      • multiply

        public Vector2 multiply​(float v)
      • lengthSquared

        public float lengthSquared()
      • normalize

        public Vector2 normalize()
      • dot

        public float dot​(Vector2 v)