Ray

fun Ray(direction: Double, distance: Double)

Convenience constructor with ray set at origin. Similar to .Ray

Parameters

direction

The direction of the ray points in radians.

distance

The distance the ray is projected


fun Ray(direction: Vec2, distance: Double)

Convenience constructor with ray set at origin. Similar to .Ray

Parameters

direction

The direction of the ray points.

distance

The distance the ray is projected


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

Convenience constructor. Similar to .Ray

Parameters

startPoint

The origin of the rays projection.

direction

The direction of the ray points in radians.

distance

The distance the ray is projected


fun Ray(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