Ray.init_

graphene.ray.Ray init_(graphene.point3_d.Point3D origin, graphene.vec3.Vec3 direction = null) nothrow

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

Parameters

originthe origin of the ray
directionthe direction vector

Returns

the initialized ray