czm_pointAlongRay
Computes the point along a ray at the given time. time
can be positive, negative, or zero.
Parameters:
Name | Type | Description |
---|---|---|
ray |
czm_ray | The ray to compute the point along. |
time |
float | The time along the ray. |
Returns:
vec3
The point along the ray at the given time.
Example
czm_ray ray = czm_ray(vec3(0.0), vec3(1.0, 0.0, 0.0)); // origin, direction vec3 v = czm_pointAlongRay(ray, 2.0); // (2.0, 0.0, 0.0)