- Object
-
- StaticValueAABBExpansionMethod<T>
-
- Type Parameters:
T
- the object type
- All Implemented Interfaces:
AABBExpansionMethod<T>
public final class StaticValueAABBExpansionMethod<T> extends Object implements AABBExpansionMethod<T>
ExpandsAABB
s by a static amount using theAABB.expand(double)
method.- Since:
- 4.1.0
- Version:
- 4.1.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description StaticValueAABBExpansionMethod(double expansion)
Minimal constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
expand(T object, AABB aabb)
Expands the given AABB.double
getExpansion()
Returns the static expansion value.
-
-
-
Method Detail
-
expand
public void expand(T object, AABB aabb)
Description copied from interface:AABBExpansionMethod
Expands the given AABB.- Specified by:
expand
in interfaceAABBExpansionMethod<T>
- Parameters:
object
- the object the AABB was generated fromaabb
- the AABB to expand
-
getExpansion
public double getExpansion()
Returns the static expansion value.- Returns:
- double
-
-