Class ComplexVector

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

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

    • ComplexVector

      public ComplexVector(double a_x, double a_y)
      Instantiates a new complex vector.
      Parameters:
      a_x - the a x
      a_y - the a y
  • Method Details

    • getMagnitude

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

      public static ComplexVector vectorGivenThetaAndMagnitude(double theta_radians, double magnitude)
      Vector given theta and magnitude.
      Parameters:
      theta_radians - the theta radians
      magnitude - the magnitude
      Returns:
      the complex vector
    • ThetaRadians

      public double ThetaRadians()
      Theta radians.
      Returns:
      the double
    • toString

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

      public double ThetaDegrees()
      Theta degrees.
      Returns:
      the double