/** * Sets this polygon such that it represents the smallest convex hull that contains both * polygons. * <p> * Note that the resulting polygon is ready to be used for any operations, no need to call * {@link #update()}. * </p> * * @param firstVertex2DSupplier the first supplier of vertices. * @param secondVertex2DSupplier the second supplier of vertices. * @throws ReferenceFrameMismatchException if any of the vertices provided by * {@code firstVertexSupplier} are not expressed in the same reference frame as * {@code this}. * @see FrameVertex2DSupplier * @see #addVertices(FrameVertex2DSupplier) */ default void set(FrameVertex2DSupplier firstVertex2DSupplier, Vertex2DSupplier secondVertex2DSupplier) { clear(); addVertices(firstVertex2DSupplier); addVertices(secondVertex2DSupplier); update(); }
/** * Sets this polygon such that it represents the smallest convex hull that contains both * polygons. * <p> * Note that the resulting polygon is ready to be used for any operations, no need to call * {@link #update()}. * </p> * * @param firstVertex2DSupplier the first supplier of vertices. * @param secondVertex2DSupplier the second supplier of vertices. * @throws ReferenceFrameMismatchException if any of the vertices provided by * {@code secondVertexSupplier} are not expressed in the same reference frame as * {@code this}. * @see FrameVertex2DSupplier * @see #addVertices(FrameVertex2DSupplier) */ default void set(Vertex2DSupplier firstVertex2DSupplier, FrameVertex2DSupplier secondVertex2DSupplier) { clear(); addVertices(firstVertex2DSupplier); addVertices(secondVertex2DSupplier); update(); }
/** * Sets this polygon such that it represents the smallest convex hull that contains both * polygons. * <p> * Note that the resulting polygon is ready to be used for any operations, no need to call * {@link #update()}. * </p> * * @param firstVertex2DSupplier the first supplier of vertices. * @param secondVertex2DSupplier the second supplier of vertices. * @throws ReferenceFrameMismatchException if any of the vertices provided by * {@code firstVertexSupplier} and {@code secondVertexSupplier} are not expressed in * the same reference frame as {@code this}. * @see FrameVertex2DSupplier * @see #addVertices(FrameVertex2DSupplier) */ default void set(FrameVertex2DSupplier firstVertex2DSupplier, FrameVertex2DSupplier secondVertex2DSupplier) { clear(); addVertices(firstVertex2DSupplier); addVertices(secondVertex2DSupplier); update(); }
/** * This method does: * <ol> * <li>{@link #clear()}. * <li>{@link #addVertices(FrameVertex3DSupplier)}. * <li>{@link #update()}. * </ol> * * @param frameVertex3DSupplier the supplier of vertices. * @throws ReferenceFrameMismatchException if any of the given {@code vertices} is a * {@code FramePoint3DReadOnly} and is not expressed in the same reference frame as * {@code this}. * @see FrameVertex3DSupplier * @see #addVertices(FrameVertex3DSupplier) */ default void set(FrameVertex3DSupplier frameVertex3DSupplier) { clear(); addVertices(frameVertex3DSupplier); update(); }
/** * This method does: * <ol> * <li>{@link #clear()}. * <li>{@link #addVertices(FrameVertex2DSupplier)}. * <li>{@link #update()}. * </ol> * * @param frameVertex2DSupplier the supplier of vertices. * @throws ReferenceFrameMismatchException if any of the given {@code vertices} is a * {@code FramePoint2DReadOnly} and is not expressed in the same reference frame as * {@code this}. * @see FrameVertex2DSupplier * @see #addVertices(FrameVertex2DSupplier) */ default void set(FrameVertex2DSupplier frameVertex2DSupplier) { clear(); addVertices(frameVertex2DSupplier); update(); }