15#ifndef RAYSPHEREHITTEST_H_6014714286
16#define RAYSPHEREHITTEST_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 sphere in origin is hit by a Ray object.
bool hitExists() const
Tells whether a hit exists.
RaySphereHitTest()
Instantiates.
const VectorType & hitLocation() const
References the location of the hit.
void compute(const Ray< VectorType > &ray, const ScalarType radius)
Performs a hit test of ray with a sphere of radius radius. The sphere is assumed to be centered in th...
Defines LibCarna::base::math namespace and LIBCARNA_FOR_VECTOR3UI.