Ray

Flowchart

Legend