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