### Question:
CursorPoint { public double getThetaFromOrigin() { return Math.atan2(this.x, this.y); } CursorPoint(int x, int y, int delay); double getDistanceFromOrigin(); double getThetaFromOrigin(); CursorPoint getCursorPointTranslatedBy(CursorPoint startingCursorPoint); CursorPoint getCursorPointScaledBy(double scaleFactor); CursorPoint getCursorPointRotatedBy(double angleOfRotation); CursorPoint getCursorPointTransformedByParabola(double[] parabolaEquation); CursorPoint getCursorPointWithNewDelay(int delay); void display(); public int x; public int y; public int delay; }### Answer:
@Test void testThetaFromOrigin() { CursorPoint a = new CursorPoint(0, 0, 0); CursorPoint b = new CursorPoint(3, 4, 0); CursorPoint c = new CursorPoint(500, 750, 0); CursorPoint d = new CursorPoint(284, 848, 0); CursorPoint e = new CursorPoint(10, 0, 0); CursorPoint f = new CursorPoint(0, 10, 0); assertEquals(0, a.getThetaFromOrigin()); assertEquals(0.6435011087932844, b.getThetaFromOrigin()); assertEquals(0.5880026035475675, c.getThetaFromOrigin()); assertEquals(0.32316498061040844, d.getThetaFromOrigin()); assertEquals(1.5707963267948966, e.getThetaFromOrigin()); assertEquals(0.0, f.getThetaFromOrigin()); }