This is the documentation for Enlighten.

class Geo RayResult

class Geo::RayResult

The result of a ray intersection test.

Functions

Name Description
GetIsFrontFacing()

Is the intersection on the front-face of the triangle?

GetIsIntersection()

Checks if there was an intersection.

GetIsPointOccluded(const Rayf &, const Geo::v128 &)

Checks if the given point is behind the intersection of the given ray.

GetRayIntersection(const Rayf &)

Gets the point of intersection.

GetRayIntersectionDistance(const Rayf &)

Gets the distance along the ray at the intersection.

GetTriangleIdx()

Gets the index of the intersected triangle. If this is negative nothing was intersected.

GetTValue()

Gets the t-value along the ray at the intersection point.


bool Geo::RayResult::GetIsFrontFacing


public: bool GetIsFrontFacing() const


Is the intersection on the front-face of the triangle?


bool Geo::RayResult::GetIsIntersection


public: bool GetIsIntersection() const


Checks if there was an intersection.


bool Geo::RayResult::GetIsPointOccluded


public: bool GetIsPointOccluded
(
    const Rayf & ray,
    const Geo::v128 & point
) const


Checks if the given point is behind the intersection of the given ray.


Geo::v128 Geo::RayResult::GetRayIntersection


public: Geo::v128 GetRayIntersection
(
    const Rayf & ray
) const


Gets the point of intersection.


float Geo::RayResult::GetRayIntersectionDistance


public: float GetRayIntersectionDistance
(
    const Rayf & ray
) const


Gets the distance along the ray at the intersection.


Geo::s32 Geo::RayResult::GetTriangleIdx


public: Geo::s32 GetTriangleIdx() const


Gets the index of the intersected triangle. If this is negative nothing was intersected.


float Geo::RayResult::GetTValue


public: float GetTValue() const


Gets the t-value along the ray at the intersection point.