BEPUphysics.CollisionTests.CollisionAlgorithms.MinkowskiToolbox.GetLocalMinkowskiExtremePoint C# (CSharp) Метод

GetLocalMinkowskiExtremePoint() публичный статический Метод

Gets the extreme point of the minkowski difference of shapeA and shapeB in the local space of shapeA.
public static GetLocalMinkowskiExtremePoint ( ConvexShape shapeA, ConvexShape shapeB, System.Vector3 &direction, RigidTransform &localTransformB, System.Vector3 &extremePointA, System.Vector3 &extremePoint ) : void
shapeA BEPUphysics.CollisionShapes.ConvexShapes.ConvexShape First shape.
shapeB BEPUphysics.CollisionShapes.ConvexShapes.ConvexShape Second shape.
direction System.Vector3 Extreme point direction in local space.
localTransformB BEPUutilities.RigidTransform Transform of shapeB in the local space of A.
extremePointA System.Vector3 The extreme point on shapeA.
extremePoint System.Vector3 The extreme point in the local space of A.
Результат void
        public static void GetLocalMinkowskiExtremePoint(ConvexShape shapeA, ConvexShape shapeB, ref Vector3 direction, ref RigidTransform localTransformB,
                                                 out Vector3 extremePointA, out Vector3 extremePoint)
        {
            //Extreme point of A-B along D = (extreme point of A along D) - (extreme point of B along -D)
            shapeA.GetLocalExtremePointWithoutMargin(ref direction, out extremePointA);
            Vector3 v;
            Vector3.Negate(ref direction, out v);
            Vector3 extremePointB;
            shapeB.GetExtremePointWithoutMargin(v, ref localTransformB, out extremePointB);

            ExpandMinkowskiSum(shapeA.collisionMargin, shapeB.collisionMargin, direction, ref extremePointA, ref extremePointB);
            Vector3.Subtract(ref extremePointA, ref extremePointB, out extremePoint);


        }

Same methods

MinkowskiToolbox::GetLocalMinkowskiExtremePoint ( ConvexShape shapeA, ConvexShape shapeB, System.Vector3 &direction, RigidTransform &localTransformB, System.Vector3 &extremePoint ) : void
MinkowskiToolbox::GetLocalMinkowskiExtremePoint ( ConvexShape shapeA, ConvexShape shapeB, System.Vector3 &direction, RigidTransform &localTransformB, System.Vector3 &extremePointA, System.Vector3 &extremePointB, System.Vector3 &extremePoint ) : void