示例#1
0
    private void DefineCurrentRow()
    {
        //_currRow.Add
        var xS = UList.FindXAxisCommonValues(_eaten, H.Descending);
        var zS = UList.FindZAxisCommonValues(_eaten, H.Descending);

        float find = 0;
        H     axis = H.None;

        //norht find the top value on z
        if (_direction == 0)
        {
            find = UMath.ReturnMax(zS);
            axis = H.Z;
        }
        //south
        else if (_direction == 2)
        {
            find = UMath.ReturnMinimum(zS);
            axis = H.Z;
        }
        //east
        else if (_direction == 1)
        {
            find = UMath.ReturnMax(xS);
            axis = H.X;
        }
        //west
        else if (_direction == 3)
        {
            find = UMath.ReturnMinimum(xS);
            axis = H.X;
        }

        _currRow = UList.FindVectorsOnSameRange(_eaten, find, axis, 0.05f);
    }