Since 1.4Optionalproperties: Partial<{}>Since 1.4equalChecks whether the two given Graphene.Ray are equal.
true if the given rays are equal
Since 1.4freeSince 1.4get_Computes the point on the given Graphene.Ray that is closest to the
given point p.
Since 1.4get_Since 1.4get_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
Since 1.4get_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
Since 1.4get_Since 1.4get_Retrieves the coordinates of a point at the distance t along the
given Graphene.Ray.
the distance along the ray
Since 1.4initInitializes the given Graphene.Ray using the given origin
and direction values.
the initialized ray
Since 1.4init_Initializes the given Graphene.Ray using the origin and direction values of another Graphene.Ray.
the initialized ray
Since 1.4init_Initializes the given Graphene.Ray using the given vectors.
the initialized ray
Since 1.10intersect_Intersects the given Graphene.Ray r with the given
Graphene.Box b.
the type of intersection
Since 1.10intersect_Intersects the given Graphene.Ray r with the given
Graphene.Sphere s.
the type of intersection
Since 1.10intersect_Intersects the given Graphene.Ray r with the given
Graphene.Triangle t.
the type of intersection
Since 1.10intersects_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
Since 1.10intersects_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
Since 1.10intersects_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