 /*
 * Selim Mimaroglu
 * 
 * CS680 
 * Object-Oriented Design
 * "Marble Applet"
 *
 * File: ~smimarog/cs680/p3/VectorQuantity.java
 *
 */

/**
 * VectoryQuantity is a "struct class" -- a simple container that
 * represents the components of a vector: magnitude and direction.
 *
 * 
 * 
 */
public class VectorQuantity {

  /**
   * The magnitude of the vector.
   */
  public double magnitude;

  /**
   * The direction of the vector (in radians),
   */
  public double direction;


  /**
   * Construct a new VectorQuantity with magnitude and direction of zero.
   */
  public VectorQuantity() {
    this(0.0, 0.0);
  }

  /**
   * Construct a new VectorQuantity object with the specified
   * magnitude and direction.
   */
  public VectorQuantity(double magnitude, double direction) {
    this.magnitude = magnitude;
    this.direction = direction;
  }

  /**
   * Return an informative string representation of this
   * VectorQuantity object.
   */
  public String toString() {
    return "VectorQuantity: magnitude = " + magnitude + ", direction = " +
      direction;
  }

}

