Exemplo n.º 1
0
 public CartesianPoint asCartesianPoint() {
   int x = (int) round((r * theta.cos()));
   int y = (int) round(r * theta.sin());
   return new CartesianPoint(x, y);
 }
Exemplo n.º 2
0
 public boolean isEqualTo(PolarPoint other, CalculationPrecision precision) {
   return precision.isEqual(r, other.r) && theta.isEqual(other.theta, precision);
 }