def centerM(coor, maxM):
    """
    Center vector coor in M axis.

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