Checks whether the two given #graphene_ray_t are equal.
a #graphene_ray_t
Frees the resources allocated by graphene_ray_alloc().
Computes the distance of the origin of the given #graphene_ray_t from the given plane.
If the ray does not intersect the plane, this function returns INFINITY
.
a #graphene_plane_t
Computes the distance of the closest approach between the
given #graphene_ray_t r
and the point p
.
The closest approach to a ray from a point is the distance between the point and the projection of the point on the ray itself.
a #graphene_point3d_t
Retrieves the origin of the given #graphene_ray_t.
Retrieves the coordinates of a point at the distance t
along the
given #graphene_ray_t.
the distance along the ray
Intersects the given #graphene_ray_t r
with the given
#graphene_box_t b
.
Intersects the given #graphene_ray_t r
with the given
#graphene_sphere_t s
.
a #graphene_sphere_t
Intersects the given #graphene_ray_t r
with the given
#graphene_triangle_t t
.
a #graphene_triangle_t
Checks if the given #graphene_ray_t r
intersects the
given #graphene_sphere_t s
.
See also: graphene_ray_intersect_sphere()
a #graphene_sphere_t
Checks whether the given #graphene_ray_t r
intersects the
given #graphene_triangle_t b
.
See also: graphene_ray_intersect_triangle()
a #graphene_triangle_t
Allocates a new #graphene_ray_t structure.
The contents of the returned structure are undefined.
A ray emitted from an origin in a given direction.
The contents of the
graphene_ray_t
structure are private, and should not be modified directly.