public Phasor toPhasor(){
        double[] co0 = this.point0.getPointCoordinates();
        double[] co1 = this.point1.getPointCoordinates();
        double mag = 0.0;
        double phase = 0.0;
        switch(this.nDimensionsEntered){
            case 1: mag = Math.abs(co1[0] - co0[0]);
                    phase = 0.0;
                    break;
            case 2: mag = Point.distance(this.point0, this.point1);
                    phase = Math.toDegrees(Math.atan2((co1[1] - co0[1]),(co1[0] - co0[0])));
                    break;
            default: throw new IllegalArgumentException("Entered dimensions must be either 1 or 2");
        }
        return new Phasor(mag, phase);      
    }