Update in ray transfer matrix class.