Every joint of a robot arm is a rotation. Multiply the joints' matrices together, in order, and you get exactly where the gripper ends up.