rayCast

expect fun rayCast(origin: Vec2, translation: Vec2): CastOutput

Cast a ray against this shape.

Return

The cast result

Parameters

origin

The ray origin in world space

translation

The ray direction and length