public VectorP Subtract(VectorP polarVec) { VectorP temp = new VectorP(angle, magnitude); temp.angle -= polarVec.angle; temp.magnitude -= polarVec.magnitude; return temp; }
public VectorP Add(VectorP polarVec) { VectorP temp = new VectorP(angle, magnitude); temp.angle += polarVec.angle; temp.magnitude += polarVec.magnitude; return temp; }