![]() |
LibCarna Version 3.4.0
|
Tests whether particular plane is hit by a Ray object. More...
#include <RayPlaneHitTest.hpp>
Public Member Functions | |
| RayPlaneHitTest () | |
| Instantiates. | |
| void | compute (const Ray< VectorType > &ray, const VectorType &planeNormal, ScalarType planeOriginOffset) |
| Performs a hit test of ray with the plane with planeNormal and planeOriginOffset. Use hitExists and hitLocation to obtain the test results. | |
| bool | hitExists () const |
| Tells whether a hit exists. | |
| const VectorType & | hitLocation () const |
| References the location of the hit. | |
Tests whether particular plane is hit by a Ray object.
| VectorType | defines the vector type to use for computation. |
| ScalarType | defines the scalar type to use for computation. |
Definition at line 52 of file RayPlaneHitTest.hpp.
| LibCarna::base::math::RayPlaneHitTest< VectorType, ScalarType >::RayPlaneHitTest | ( | ) |
| void LibCarna::base::math::RayPlaneHitTest< VectorType, ScalarType >::compute | ( | const Ray< VectorType > & | ray, |
| const VectorType & | planeNormal, | ||
| ScalarType | planeOriginOffset | ||
| ) |
Performs a hit test of ray with the plane with planeNormal and planeOriginOffset. Use hitExists and hitLocation to obtain the test results.
Definition at line 112 of file RayPlaneHitTest.hpp.
| bool LibCarna::base::math::RayPlaneHitTest< VectorType, ScalarType >::hitExists | ( | ) | const |
Tells whether a hit exists.
Definition at line 97 of file RayPlaneHitTest.hpp.
| const VectorType & LibCarna::base::math::RayPlaneHitTest< VectorType, ScalarType >::hitLocation | ( | ) | const |
References the location of the hit.
hitExists() == true Definition at line 104 of file RayPlaneHitTest.hpp.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen