Module org.dyn4j

Class Manifold

    • Constructor Detail

      • Manifold

        public Manifold()
        Default constructor.
    • Method Detail

      • clear

        public void clear()
        Clears the Manifold information.
      • getNormal

        public Vector2 getNormal()
        Returns the normal.
        Returns:
        Vector2
      • setPoints

        public void setPoints​(List<ManifoldPoint> points)
        Sets the point list of this Manifold.
        Parameters:
        points - the point list
      • setNormal

        public void setNormal​(Vector2 normal)
        Sets the manifold normal.

        Must be normalized.

        Parameters:
        normal - the manifold normal
      • copy

        public void copy​(Manifold manifold)
        Copies (deep) the given Manifold to this Manifold.
        Parameters:
        manifold - the manifold to copy
        Since:
        4.0.0
      • shift

        public void shift​(Vector2 shift)
        Description copied from interface: Shiftable
        Translates the object to match the given coordinate shift.
        Specified by:
        shift in interface Shiftable
        Parameters:
        shift - the amount to shift along the x and y axes