pose from matrix method