Since 1.4Optionalproperties: Partial<{}>Checks whether the two given Graphene.Ray are equal.
true if the given rays are equal
Frees the resources allocated by graphene_ray_alloc().
Computes the point on the given Graphene.Ray that is closest to the
given point p.
Retrieves the direction of the given Graphene.Ray.
Computes the distance of the origin of the given Graphene.Ray from the given plane.
If the ray does not intersect the plane, this function returns INFINITY.
the distance of the origin of the ray from the plane
Computes the distance of the closest approach between the
given Graphene.Ray 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.
the distance of the point
Retrieves the origin of the given Graphene.Ray.
Retrieves the coordinates of a point at the distance t along the
given Graphene.Ray.
the distance along the ray
Initializes the given Graphene.Ray using the given origin
and direction values.
the initialized ray
Initializes the given Graphene.Ray using the origin and direction values of another Graphene.Ray.
the initialized ray
Initializes the given Graphene.Ray using the given vectors.
the initialized ray
Intersects the given Graphene.Ray r with the given
Graphene.Box b.
the type of intersection
Intersects the given Graphene.Ray r with the given
Graphene.Sphere s.
the type of intersection
Intersects the given Graphene.Ray r with the given
Graphene.Triangle t.
the type of intersection
Checks whether the given Graphene.Ray r intersects the
given Graphene.Box b.
See also: graphene_ray_intersect_box()
true if the ray intersects the box
Checks if the given Graphene.Ray r intersects the
given Graphene.Sphere s.
See also: graphene_ray_intersect_sphere()
true if the ray intersects the sphere
Checks whether the given Graphene.Ray r intersects the
given Graphene.Triangle b.
See also: graphene_ray_intersect_triangle()
true if the ray intersects the triangle
Staticalloc
A ray emitted from an origin in a given direction.
The contents of the
graphene_ray_tstructure are private, and should not be modified directly.Since
1.4