Slice

fun Slice(startPoint: Vec2, direction: Vec2, distance: Double)

Parameters

startPoint

The origin of the rays projection.

direction

The direction of the ray points in radians.

distance

The distance the ray is projected