Module org.dyn4j

Class MinkowskiSumPoint


  • public class MinkowskiSumPoint
    extends Object
    Represents a point in the MinkowskiSum.
    Since:
    1.0.0
    Version:
    3.2.0
    Author:
    William Bittle
    • Constructor Detail

      • MinkowskiSumPoint

        public MinkowskiSumPoint​(Vector2 supportPoint1,
                                 Vector2 supportPoint2)
        Full constructor.
        Parameters:
        supportPoint1 - the support point in the first Convex Shape
        supportPoint2 - the support point in the second Convex Shape
    • Method Detail

      • getSupportPoint1

        public Vector2 getSupportPoint1()
        Returns the support point for the first Convex Shape.
        Returns:
        Vector2
      • getSupportPoint2

        public Vector2 getSupportPoint2()
        Returns the support point for the second Convex Shape.
        Returns:
        Vector2
      • getPoint

        public Vector2 getPoint()
        Returns the Minkowski sum point given the two support points.
        Returns:
        Vector2