Module org.dyn4j

Class StaticValueAABBExpansionMethod<T>

    • Constructor Detail

      • StaticValueAABBExpansionMethod

        public StaticValueAABBExpansionMethod​(double expansion)
        Minimal constructor.
        Parameters:
        expansion - the expansion amount
    • Method Detail

      • expand

        public void expand​(T object,
                           AABB aabb)
        Description copied from interface: AABBExpansionMethod
        Expands the given AABB.
        Specified by:
        expand in interface AABBExpansionMethod<T>
        Parameters:
        object - the object the AABB was generated from
        aabb - the AABB to expand
      • getExpansion

        public double getExpansion()
        Returns the static expansion value.
        Returns:
        double