Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Geo::RayResult

The result of a ray intersection test.

Functions

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


Anchor
aa2eaa4e03567e002adf992ece5e167b5
aa2eaa4e03567e002adf992ece5e167b5

bool Geo::RayResult::GetIsFrontFacing

...

public: bool GetIsFrontFacing() const

...

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


Anchor
a75d859f2d5626b4ac8e428f17507d462
a75d859f2d5626b4ac8e428f17507d462

bool Geo::RayResult::GetIsIntersection

...

public: bool GetIsIntersection() const

...

Checks if there was an intersection.


Anchor
a972d72ee2eb0b1c989eba44a7936946c
a972d72ee2eb0b1c989eba44a7936946c

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.


Anchor
a9d3ff58bfed2bdfc3858bb346a42003f
a9d3ff58bfed2bdfc3858bb346a42003f

Geo::v128 Geo::RayResult::GetRayIntersection

...

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

...

Gets the point of intersection.


Anchor
a0cf27d167c13873038857ddda0b2b13e
a0cf27d167c13873038857ddda0b2b13e

float Geo::RayResult::GetRayIntersectionDistance

...

public: float GetRayIntersectionDistance
(
    const Rayf & ray
) const

...

Gets the distance along the ray at the intersection.


Anchor
a303ab14310aee6a1939e71df5eaf8779
a303ab14310aee6a1939e71df5eaf8779

Geo::s32 Geo::RayResult::GetTriangleIdx

...

public: Geo::s32 GetTriangleIdx() const

...

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


Anchor
ac1f8a253f35ce3c64da9137667c80d4d
ac1f8a253f35ce3c64da9137667c80d4d

float Geo::RayResult::GetTValue

...

public: float GetTValue() const

...

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