Package velo.ladaalpha.fields.physics
Class ComplexVector
java.lang.Object
velo.ladaalpha.fields.physics.ComplexVector
The Class ComplexVector.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the magnitude.doubleTheta degrees.doubleTheta radians.toString()To string.static ComplexVectorvectorGivenThetaAndMagnitude(double theta_radians, double magnitude) Vector given theta and magnitude. 
- 
Constructor Details
- 
ComplexVector
public ComplexVector(double a_x, double a_y) Instantiates a new complex vector.- Parameters:
 a_x- the a xa_y- the a y
 
 - 
 - 
Method Details
- 
getMagnitude
public double getMagnitude()Gets the magnitude.- Returns:
 - the magnitude
 
 - 
vectorGivenThetaAndMagnitude
Vector given theta and magnitude.- Parameters:
 theta_radians- the theta radiansmagnitude- the magnitude- Returns:
 - the complex vector
 
 - 
ThetaRadians
public double ThetaRadians()Theta radians.- Returns:
 - the double
 
 - 
toString
To string. - 
ThetaDegrees
public double ThetaDegrees()Theta degrees.- Returns:
 - the double
 
 
 -