Cast a ray at LineSegments

If you’re new, check out these examples.