Class Vector2d

java.lang.Object
buildengine.math.vector.Vector2d

public class Vector2d extends Object
2D Vector with double point coordinates
  • Field Details

    • x

      public double x
      The components of the vector
    • y

      public double y
      The components of the vector
  • Constructor Details

    • Vector2d

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

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

      public Vector2d(Vector2i vector2i)
    • Vector2d

      public Vector2d(Vector2f vector2f)
    • Vector2d

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