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