init

fun init(origin: Point3D? = null, direction: Vec3? = null): Ray

Initializes the given #graphene_ray_t using the given @origin and @direction values.

Return

the initialized ray

Since

1.4

Parameters

origin

the origin of the ray

direction

the direction vector