Implemented base Ray functions