WindowsPuzzleVisualizer.Game1.GetCenteringVector C# (CSharp) Method

GetCenteringVector() private method

private GetCenteringVector ( PuzzleSolver.PuzzleState state ) : Vector3
state PuzzleSolver.PuzzleState
return Vector3
        private Vector3 GetCenteringVector(PuzzleState state)
        {
            var min = ToVector(state.MinBounds);
            var max = ToVector(state.MaxBounds);

            var center = (max + min) / 2;
            return -center;
        }