Package: graphene

Function graphene:ray-init

Lambda List

graphene:ray-init (ray origin direction)

Arguments

ray -- a graphene:ray-t instance to be initialized
origin -- a graphene:point3d-t instance with the origin of the ray
direction -- a graphene:vec3-t instance with the direction vector

Return Value

The initialized graphene:ray-t instance.

Details

Initializes the given graphene:ray-t instance using the given origin and direction values. The direction vector is normalized.
 

See also

2023-12-5