def Mr(Ms):
    """
    Get position part of state transformation matrix
    :param Ms: Stack of state transformation matrices
    :return: Position part, IE upper 3x3 of each matrix
    """
    return Ms[...,:3,:3]