### Question:
Point { public Point translate(double x, double y) { this.x += x; this.y += y; return this; } Point(double x, double y); static Point cis(double ang, double len); Point clone(); double[] get(); void set(double x, double y); Point translate(double x, double y); static Point add(Point first, Point other); Point negate(); Point scale(double scale); Point rotate(double radians); Point translate(Point p); double getY(); void setY(double y); double getX(); void setX(double x); static Point subtract(Point subtractee, Point subtractor); static double dotProduct(Point a, Point b); static double normSquared(Point point); static double norm(Point point); double norm(); static double distSqared(Point a, Point b); static double dist(Point a, Point b); static boolean isFuzzyEqual(double first, double second, double epsilon); static boolean isFuzzyEqual(double first, double second); static boolean fuzzyEquals(Point fir, Point sec, double epsilon); Point weightedAvg(Point b, double bWeight); Point avg(Point b); static Point bezierSample(double locInCurve, Point... corners); static Point recursiveBezierSample(double locInCurve, Point... corners); @Override String toString(); @Override boolean equals(Object o); Point localizerToMathCoords(); Point mathToWeaverCoords(); Point weaverToLocalizerCoords(); Point changeCoords(CoordinateSystems src, CoordinateSystems dest); @Deprecated Point mathToFrcCoords(); double[] toPolarCoords(); @Override int hashCode(); static final Point ORIGIN; }### Answer:
@Test void translateTest() { Point p1 = new Point(0, 0); Point p2 = new Point(13, -4); p1.translate(p2); assertEquals(p1, p2, "translate test"); p2.translate(-10, 0); assertEquals(p1.getY(), p2.getY(), 0.0000001); assertEquals(p1.getX() - 10, p2.getX()); p2.translate(p2); assertEquals(6, p2.getX()); assertEquals(-8, p2.getY()); }