- Main Page
- Related Pages
- Modules
- Classes
- Files

Functions
GLM_GTX_intersect: Intersection tests
GTX Extensions (Experimental)

## Functions
template<typename genType >
bool | intersectLineSphere (genType const &point0, genType const &point1, genType const &center, typename genType::value_type radius, genType &position, genType &normal)
template<typename genType >
bool | intersectLineTriangle (genType const &orig, genType const &dir, genType const &vert0, genType const &vert1, genType const &vert2, genType &position)
template<typename genType >
bool | intersectRaySphere (genType const &orig, genType const &dir, genType const &center, typename genType::value_type radius, genType &position, genType &normal)
template<typename genType >
bool | intersectRayTriangle (genType const &orig, genType const &dir, genType const &vert0, genType const &vert1, genType const &vert2, genType &baryPosition)

## Detailed Description

Add intersection functions.

<glm/gtx/intersect.hpp> need to be included to use these functionalities.

## Function Documentation

bool glm::intersectLineSphere | ( | genType const & | point0,
|  | genType const & | point1,
|  | genType const & | center,
|  | typename genType::value_type | radius,
|  | genType & | position,
|  | genType & | normal
| ) |  |

Compute the intersection of a line and a sphere.

From GLM_GTX_intersect extension

bool glm::intersectLineTriangle | ( | genType const & | orig,
|  | genType const & | dir,
|  | genType const & | vert0,
|  | genType const & | vert1,
|  | genType const & | vert2,
|  | genType & | position
| ) |  |

Compute the intersection of a line and a triangle.

From GLM_GTX_intersect extension.

bool glm::intersectRaySphere | ( | genType const & | orig,
|  | genType const & | dir,
|  | genType const & | center,
|  | typename genType::value_type | radius,
|  | genType & | position,
|  | genType & | normal
| ) |  |

Compute the intersection of a ray and a sphere.

From GLM_GTX_intersect extension.

bool glm::intersectRayTriangle | ( | genType const & | orig,
|  | genType const & | dir,
|  | genType const & | vert0,
|  | genType const & | vert1,
|  | genType const & | vert2,
|  | genType & | baryPosition
| ) |  |

Compute the intersection of a ray and a triangle.

From GLM_GTX_intersect extension.