bug fix for ray caster: axis parallel rays were skipped