LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LibCarna::base::math::RayPlaneHitTest< VectorType, ScalarType > Class Template Reference

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 VectorTypehitLocation () const
 References the location of the hit.
 

Detailed Description

template<typename VectorType, typename ScalarType>
class LibCarna::base::math::RayPlaneHitTest< VectorType, ScalarType >

Tests whether particular plane is hit by a Ray object.

Parameters
VectorTypedefines the vector type to use for computation.
ScalarTypedefines the scalar type to use for computation.
Author
Leonid Kostrykin

Definition at line 52 of file RayPlaneHitTest.hpp.

Constructor & Destructor Documentation

◆ RayPlaneHitTest()

Instantiates.

Postcondition
hitExists() == false

Definition at line 90 of file RayPlaneHitTest.hpp.

Member Function Documentation

◆ compute()

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.

◆ hitExists()

Tells whether a hit exists.

Definition at line 97 of file RayPlaneHitTest.hpp.

◆ hitLocation()

References the location of the hit.

Precondition
hitExists() == true

Definition at line 104 of file RayPlaneHitTest.hpp.


The documentation for this class was generated from the following file: