Module org.dyn4j

Class ClippingManifoldSolver

    • Constructor Detail

      • ClippingManifoldSolver

        public ClippingManifoldSolver()
    • Method Detail

      • clip

        protected List<PointFeature> clip​(PointFeature v1,
                                          PointFeature v2,
                                          Vector2 n,
                                          double offset)
        Clips the segment given by s1 and s2 by n.
        Parameters:
        v1 - the first vertex of the segment to be clipped
        v2 - the second vertex of the segment to be clipped
        n - the clipping plane/line
        offset - the offset of the end point of the segment to be clipped
        Returns:
        List<Vector2> the clipped segment