BEPUphysics.CollisionTests.CollisionAlgorithms.GJK.PairSimplex.PairSimplex C# (CSharp) Метод

PairSimplex() приватный Метод

private PairSimplex ( RigidTransform &localTransformB ) : BEPUphysics.CollisionShapes.ConvexShapes
localTransformB BEPUutilities.RigidTransform
Результат BEPUphysics.CollisionShapes.ConvexShapes
        private PairSimplex(ref RigidTransform localTransformB)
        {
            //This isn't a very good approach since the transform position is not guaranteed to be within the object.  Would have to use the GetNewSimplexPoint to make it valid.
            previousDistanceToClosest = float.MaxValue;
            errorTolerance = 0;
            LocalTransformB = localTransformB;
            //Warm up the simplex using the centroids.
            //Could also use the GetNewSimplexPoint if it had a Empty case, but test before choosing.
            State = SimplexState.Point;
            SimplexA = new ContributingShapeSimplex();
            SimplexB = new ContributingShapeSimplex {A = localTransformB.Position};
            //minkowski space support = shapeA-shapeB = 0,0,0 - positionB
            Vector3.Negate(ref localTransformB.Position, out A);
            B = new Vector3();
            C = new Vector3();
            D = new Vector3();
            U = 0;
            V = 0;
            W = 0;
        }

Same methods

PairSimplex::PairSimplex ( CachedSimplex &cachedSimplex, RigidTransform &localTransformB ) : BEPUphysics.CollisionShapes.ConvexShapes