/** * Transforms this convex polygon using the given homogeneous transformation matrix. * * @param transform the transform to apply on the vertices of this convex polygon. Not modified. * @throws OutdatedPolygonException if {@link #update()} has not been called since last time this * polygon's vertices were edited. * @throws EmptyPolygonException if this polygon is empty when calling this method. * @throws NotAMatrix2DException if the rotation part of {@code transform} is not a transformation * in the XY-plane. */ @Override default void applyTransform(Transform transform) { applyTransform(transform, true); }
secondPolygon = createConvexPolygon2D(firstPolygon); secondPolygon.applyTransform(new RigidBodyTransform(new AxisAngle(new Vector3D(0.0, 0.0, 1.0), 0.1 * EPSILON), new Vector3D())); secondPolygon.applyTransform(new RigidBodyTransform(new AxisAngle(new Vector3D(0.0, 0.0, 1.0), 10.0 * EPSILON), new Vector3D()));