Module org.dyn4j

Class MinkowskiSumPoint


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

      • point

        final Vector2 point
        The Minkowski sum point
    • 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

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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