Class Vector2i

java.lang.Object
buildengine.math.vector.Vector2i

public class Vector2i extends Object
2D Vector with int point coordinates
  • Field Details

    • x

      public int x
      The components of the vector
    • y

      public int y
      The components of the vector
  • Constructor Details

    • Vector2i

      public Vector2i()
      Creates a new vector with both components set to 0
    • Vector2i

      public Vector2i(Vector2f vector2f)
    • Vector2i

      public Vector2i(Vector2d vector2d)
    • Vector2i

      public Vector2i(int d)
      Creates a new vector with equal components
      Parameters:
      d - both components value
    • Vector2i

      public Vector2i(int x, int y)
      Creates a new vector with specified components
      Parameters:
      x - the x component
      y - the y component
  • Method Details