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