/** * Transforms this line segment using the given homogeneous transformation matrix. * * @param transform the transform to apply on the endpoints of this line segment. Not modified. * @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); }