Class (GI Struct)

Graphene-1.0GrapheneRaySince 1.4

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.

1.4

Index
$gtype: GType<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.

    Parameters

    Returns number

    the distance of the origin of the ray from the plane

    1.4

  • 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.

    Parameters

    Returns number

    the distance of the point

    1.4