This is the documentation for Enlighten.
class Geo RayResult
class Geo::RayResult
The result of a ray intersection test.
Functions
Name | Description |
|---|---|
Is the intersection on the front-face of the triangle? | |
Checks if there was an intersection. | |
Checks if the given point is behind the intersection of the given ray. | |
Gets the point of intersection. | |
Gets the distance along the ray at the intersection. | |
Gets the index of the intersected triangle. If this is negative nothing was intersected. | |
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