// converts the phasor to VectorMaths vector = instance method
public static VectorMaths toVectorMaths(Phasor ph){
double x = ph.magnitude*Math.sin(ph.phaseInRad);
double y = ph.magnitude*Math.cos(ph.phaseInRad);
VectorMaths vec = new VectorMaths(x, y);
return vec;
}