Class Vector2D

java.lang.Object
org.baseagent.util.Vector2D

public class Vector2D extends Object
  • Constructor Details

    • Vector2D

      public Vector2D(double magnitude, double direction)
  • Method Details

    • getMagnitude

      public double getMagnitude()
    • getDirection

      public double getDirection()
    • add

      public void add(Vector2D v2)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object