Class Vector1D


public class Vector1D extends Vector2D
Special case of a Vector3D in one dimension.
  • Constructor Details

    • Vector1D

      public Vector1D(double x)
      Constructs a 1-dimensional vector.
      Parameters:
      x - The X (i-hat, positive to the horizontal right on a graph) component of the vector.
  • Method Details

    • getY

      public double getY()
      Description copied from class: Vector3D
      Returns the Y (j-hat, positive up vertically on a graph) component of the vector.
      Overrides:
      getY in class Vector3D
      Returns:
      The signed Y component.