12#ifndef RAYPLANEHITTEST_H_6014714286
13#define RAYPLANEHITTEST_H_6014714286
15#include <Carna/Carna.h>
48template<
typename VectorType,
typename ScalarType >
86template<
typename VectorType,
typename ScalarType >
88 : myHitExists(
false )
93template<
typename VectorType,
typename ScalarType >
100template<
typename VectorType,
typename ScalarType >
104 return myHitLocation;
108template<
typename VectorType,
typename ScalarType >
Defines Carna::base::CarnaException, Carna::base::AssertionFailure.
#define CARNA_ASSERT(expression)
If the given expression is false, a break point is raised in debug mode and an AssertionFailure throw...
Defines Carna::base::math::Ray.
Represents an association.
Tests whether particular plane is hit by a Ray object.
bool hitExists() const
Tells whether a hit exists.
RayPlaneHitTest()
Instantiates.
const VectorType & hitLocation() const
References the location of the hit.
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...
Defines Carna::base::math namespace and CARNA_FOR_VECTOR3UI.
bool isEqual(const InputType &x, const InputType &y)
Tells whether two objects are equal respectively to epsilon.