added orth2hex and rayp2inc