Module org.dyn4j

Interface Bounds

    • Method Detail

      • getTranslation

        Vector2 getTranslation()
        Returns the translation of the bounds.
        Returns:
        Vector2
        Since:
        3.2.0
      • isOutside

        boolean isOutside​(AABB aabb)
        Returns true if the given AABB is fully outside the bounds.

        If the AABB is a degenerate AABB (has zero area) then it's considered to be outside the bounds.

        Parameters:
        aabb - the AABB to test
        Returns:
        boolean true if outside the bounds
        Since:
        4.0.0
      • isOutside

        boolean isOutside​(AABB aabb,
                          Transform transform,
                          Fixture fixture)
        Returns true if the given AABB or Fixture is fully outside the bounds.

        The implementation can use any of the provided information. For example, the AxisAlignedBounds class only uses the provided AABB. For implementations of complex bounds, you can use the Transform and shape contained in the Fixture.

        Parameters:
        aabb - the AABB to test
        transform - the Transform for the fixture
        fixture - the Fixture (shape)
        Returns:
        boolean true if outside the bounds
        Since:
        4.2.1