- Object
-
- MinkowskiSum
-
-
Constructor Summary
Constructors Constructor Description MinkowskiSum(Convex convex1, Transform transform1, Convex convex2, Transform transform2)
Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Convex
getConvex1()
Convex
getConvex2()
Vector2
getSupportPoint(Vector2 direction)
Returns the farthest point in the Minkowski sum given the direction.MinkowskiSumPoint
getSupportPoints(Vector2 direction)
Returns the farthest point, and the support points in the shapes, in the Minkowski sum given the direction.Transform
getTransform1()
Transform
getTransform2()
String
toString()
-
-
-
Method Detail
-
getSupportPoint
public final Vector2 getSupportPoint(Vector2 direction)
Returns the farthest point in the Minkowski sum given the direction.- Parameters:
direction
- the search direction- Returns:
Vector2
the point farthest in the Minkowski sum in the given direction
-
getSupportPoints
public final MinkowskiSumPoint getSupportPoints(Vector2 direction)
Returns the farthest point, and the support points in the shapes, in the Minkowski sum given the direction.- Parameters:
direction
- the search direction- Returns:
MinkowskiSumPoint
the point farthest in the Minkowski sum in the given direction
-
-