Class SimpleVector

java.lang.Object
velo.ladaalpha.fields.physics.SimpleVector

public class SimpleVector extends Object
The Class SimpleVector.
  • Constructor Details

    • SimpleVector

      public SimpleVector(double magnitude, String direction)
      Instantiates a new simple vector.
      Parameters:
      magnitude - the magnitude
      direction - the direction
  • Method Details

    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getMagnitude

      public double getMagnitude()
      Gets the magnitude.
      Returns:
      the magnitude
    • setMagnitude

      public void setMagnitude(double magnitude)
      Sets the magnitude.
      Parameters:
      magnitude - the magnitude to set
    • getDirection

      public String getDirection()
      Gets the direction.
      Returns:
      the direction
    • setDirection

      public void setDirection(String direction)
      Sets the direction.
      Parameters:
      direction - the direction to set