/** * Add a vertex to this polygon. * * @param vertex the new vertex. Not modified. * @throws ReferenceFrameMismatchException if {@code vertex} and {@code this} are not expressed * in the same reference frame. * @see #addVertex(Point2DReadOnly) */ default void addVertex(FramePoint2DReadOnly vertex) { checkReferenceFrameMatch(vertex); ConvexPolygon2DBasics.super.addVertex(vertex); }
/** * Add a vertex to this polygon using only the x and y coordinates of the given {@code vertex}. * * @param referenceFrame the reference frame in which the given {@code vertex} is expressed. * @param vertex the new vertex. Not modified. * @throws ReferenceFrameMismatchException if {@code referenceFrame} and * {@code this.getReferenceFrame()} are not the same. * @see #addVertex(Point3DReadOnly) */ default void addVertex(ReferenceFrame referenceFrame, Point3DReadOnly vertex) { checkReferenceFrameMatch(referenceFrame); addVertex(vertex); }
/** * Add a vertex to this polygon using only the x and y coordinates of the given {@code vertex}. * * @param vertex the new vertex. Not modified. * @throws ReferenceFrameMismatchException if {@code vertex} and {@code this} are not expressed * in the same reference frame. * @see #addVertex(Point3DReadOnly) */ default void addVertex(FramePoint3DReadOnly vertex) { checkReferenceFrameMatch(vertex); ConvexPolygon2DBasics.super.addVertex(vertex); }
/** * Add a vertex to this polygon. * * @param referenceFrame the reference frame in which the given {@code vertex} is expressed. * @param vertex the new vertex. Not modified. * @throws ReferenceFrameMismatchException if {@code referenceFrame} and * {@code this.getReferenceFrame()} are not the same. * @see #addVertex(Point2DReadOnly) */ default void addVertex(ReferenceFrame referenceFrame, Point2DReadOnly vertex) { checkReferenceFrameMatch(referenceFrame); addVertex(vertex); }
/** * Translates this polygon. * * @param translation the translation to apply to this polygon's vertices. Not modified. * @throws ReferenceFrameMismatchException if {@code translation} and {@code this} are not * expressed in the same reference frame. * @see #translate(Tuple2DReadOnly) */ default void translate(FrameTuple2DReadOnly translation) { checkReferenceFrameMatch(translation); ConvexPolygon2DBasics.super.translate(translation); } }
/** * Add a vertex to this polygon. * * @param referenceFrame the reference frame in which the given vertex is expressed. * @param x the x-coordinate of the new vertex. * @param y the y-coordinate of the new vertex. * @throws ReferenceFrameMismatchException if {@code referenceFrame} and * {@code this.getReferenceFrame()} are not the same. * @see #addVertex(double, double) */ default void addVertex(ReferenceFrame referenceFrame, double x, double y) { checkReferenceFrameMatch(referenceFrame); addVertex(x, y); }
/** * Scale this convex polygon about {@code pointToScaleAbout}. * * @param pointToScaleAbout the center of the scale transformation. Not modified. * * @param scaleFactor the scale factor to apply to this polygon. A value of {@code 1.0} does * nothing. * @throws ReferenceFrameMismatchException if {@code pointToScaleAbout} and {@code this} are not * expressed in the same reference frame. * @see #scale(Point2DReadOnly, double) */ default void scale(FramePoint2DReadOnly pointToScaleAbout, double scaleFactor) { checkReferenceFrameMatch(pointToScaleAbout); ConvexPolygon2DBasics.super.scale(pointToScaleAbout, scaleFactor); }