def centerS(coor, maxS):
    """
    Center vector coor in S axis.

    :param coor: coordinate of vector from S center to M=0
    :param maxS: value representing end of estatic axis
    :return: S centered coordinate
    """
    return int(maxS / 2.0 + coor)