A ray emitted from an origin in a given direction.
The contents of the <GrapheneRay> structure are
private, and should not be modified directly.
Allocates a new <GrapheneRay> structure.
The contents of the returned structure are undefined.
Returned: a <GrapheneRay>.
the newly allocated <GrapheneRay>. Use ray:free to free the resources allocated by this function
Checks whether the two given <GrapheneRay> are equal.
Passed: a <GrapheneRay>.
Passed: a <GrapheneRay>.
Returned: a boolean.
true if the given rays are equal
Frees the resources allocated by ray:alloc.
Passed: a <GrapheneRay>.
Computes the point on the given <GrapheneRay> that is
closest to the given point p.
Passed: a <GrapheneRay>.
Passed: a <GraphenePoint3D>.
Passed, filled in, and returned: a
<GraphenePoint3D>.
return location for the closest point3d
Retrieves the direction of the given <GrapheneRay>.
Passed: a <GrapheneRay>.
Passed, filled in, and returned: a <GrapheneVec3>.
return location for the direction
Computes the distance of the origin of the given
<GrapheneRay> from the given plane.
If the ray does not intersect the plane, this function returns
INFINITY.
Passed: a <GrapheneRay>.
Passed: a <GraphenePlane>.
Returned: a real number.
the distance of the origin of the ray from the plane
Computes the distance of the closest approach between the given
<GrapheneRay> self 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.
Passed: a <GrapheneRay>.
Passed: a <GraphenePoint3D>.
Returned: a real number.
the distance of the point
Retrieves the origin of the given <GrapheneRay>.
Passed: a <GrapheneRay>.
Passed, filled in, and returned: a
<GraphenePoint3D>.
return location for the origin
Retrieves the coordinates of a point at the distance t along the
given <GrapheneRay>.
Passed: a <GrapheneRay>.
Passed: a real number.
the distance along the ray
Passed, filled in, and returned: a
<GraphenePoint3D>.
return location for the position
Initializes the given <GrapheneRay> using the given
origin and direction values.
Passed: a <GrapheneRay>.
the <GrapheneRay> to initialize
Passed, or left out: a <GraphenePoint3D>, or
#f.
the origin of the ray
Passed, or left out: a <GrapheneVec3>, or #f.
the direction vector
Returned: a <GrapheneRay>.
the initialized ray
Initializes the given <GrapheneRay> using the origin
and direction values of another <GrapheneRay>.
Passed: a <GrapheneRay>.
the <GrapheneRay> to initialize
Passed: a <GrapheneRay>.
Returned: a <GrapheneRay>.
the initialized ray
Initializes the given <GrapheneRay> using the given
vectors.
Passed: a <GrapheneRay>.
the <GrapheneRay> to initialize
Passed, or left out: a <GrapheneVec3>, or #f.
Passed, or left out: a <GrapheneVec3>, or #f.
Returned: a <GrapheneRay>.
the initialized ray
Intersects the given <GrapheneRay> self with the
given <GrapheneBox> b.
Passed: a <GrapheneRay>.
Passed: a <GrapheneBox>.
Returned: a
<%GrapheneRayIntersectionKind>.
the type of intersection
Returned: a real number.
the distance of the point on the ray that intersects the box
Intersects the given <GrapheneRay> self with the
given <GrapheneSphere> s.
Passed: a <GrapheneRay>.
Passed: a <GrapheneSphere>.
Returned: a
<%GrapheneRayIntersectionKind>.
the type of intersection
Returned: a real number.
the distance of the point on the ray that intersects the sphere
Intersects the given <GrapheneRay> self with the
given <GrapheneTriangle> t.
Passed: a <GrapheneRay>.
Passed: a <GrapheneTriangle>.
Returned: a
<%GrapheneRayIntersectionKind>.
the type of intersection
Returned: a real number.
the distance of the point on the ray that intersects the triangle
Checks whether the given <GrapheneRay> self
intersects the given <GrapheneBox> b.
See also: ray:intersect-box
Passed: a <GrapheneRay>.
Passed: a <GrapheneBox>.
Returned: a boolean.
true if the ray intersects the box
Checks if the given <GrapheneRay> self
intersects the given <GrapheneSphere> s.
See also: ray:intersect-sphere
Passed: a <GrapheneRay>.
Passed: a <GrapheneSphere>.
Returned: a boolean.
true if the ray intersects the sphere
Checks whether the given <GrapheneRay> self
intersects the given <GrapheneTriangle> b.
See also: ray:intersect-triangle
Passed: a <GrapheneRay>.
Passed: a <GrapheneTriangle>.
Returned: a boolean.
true if the ray intersects the triangle