Beispiel #1
0
 public double Distance(PrPoint other)
 {
     return(vectorTo(other).rho());
 }
Beispiel #2
0
 public void rotate(PrPoint p, double angle)
 {
     translate(-p.x, -p.y);
     centre_rotate(angle);
     translate(p.x, p.y);
 }
Beispiel #3
0
 public PrPoint vectorTo(PrPoint other)
 {
     return(new PrPoint(other.x - x, other.y - y));
 }