12#ifndef RAYSPHEREHITTEST_H_6014714286
13#define RAYSPHEREHITTEST_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 sphere in origin is hit by a Ray object.
bool hitExists() const
Tells whether a hit exists.
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...
RaySphereHitTest()
Instantiates.
Defines Carna::base::math namespace and CARNA_FOR_VECTOR3UI.