15#ifndef RAYPLANEHITTEST_H_6014714286
16#define RAYPLANEHITTEST_H_6014714286
51template<
typename VectorType,
typename ScalarType >
89template<
typename VectorType,
typename ScalarType >
91 : myHitExists(
false )
96template<
typename VectorType,
typename ScalarType >
103template<
typename VectorType,
typename ScalarType >
107 return myHitLocation;
111template<
typename VectorType,
typename ScalarType >
Defines LibCarna::base::LibCarnaException and LibCarna::base::AssertionFailure.
#define LIBCARNA_ASSERT(expression)
If the given expression is false, a break point is raised in debug mode and an AssertionFailure throw...
Contains forward-declarations.
Defines LibCarna::base::math::Ray.
Represents an association.
Tests whether particular plane is hit by a Ray object.
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 h...
bool hitExists() const
Tells whether a hit exists.
const VectorType & hitLocation() const
References the location of the hit.
Defines LibCarna::base::math namespace and LIBCARNA_FOR_VECTOR3UI.
bool isEqual(const InputType &x, const InputType &y)
Tells whether two objects are equal respectively to epsilon.