ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Ray< T > Struct Template Reference

Simple Ray structure. More...

#include <RayAndBox.h>

Collaboration diagram for Ray< T >:

Public Member Functions

 Ray (const Vector3Tpl< T > &rayAxis, const Vector3Tpl< T > &rayOrigin)
 
double radialSquareDistance (const Vector3Tpl< T > &P) const
 
double squareDistanceToOrigin (const Vector3Tpl< T > &P) const
 
void squareDistances (const Vector3Tpl< T > &P, double &radial, double &toOrigin) const
 

Public Attributes

Vector3Tpl< T > dir
 
Vector3Tpl< T > origin
 
Vector3Tpl< T > invDir
 
Tuple3i sign
 

Detailed Description

template<typename T>
struct Ray< T >

Simple Ray structure.

Definition at line 14 of file RayAndBox.h.

Constructor & Destructor Documentation

◆ Ray()

template<typename T >
Ray< T >::Ray ( const Vector3Tpl< T > &  rayAxis,
const Vector3Tpl< T > &  rayOrigin 
)
inline

Member Function Documentation

◆ radialSquareDistance()

template<typename T >
double Ray< T >::radialSquareDistance ( const Vector3Tpl< T > &  P) const
inline

◆ squareDistances()

template<typename T >
void Ray< T >::squareDistances ( const Vector3Tpl< T > &  P,
double &  radial,
double &  toOrigin 
) const
inline

◆ squareDistanceToOrigin()

template<typename T >
double Ray< T >::squareDistanceToOrigin ( const Vector3Tpl< T > &  P) const
inline

Definition at line 30 of file RayAndBox.h.

References Vector3Tpl< Type >::norm2d(), and Ray< T >::origin.

Referenced by cloudViewer::DgmOctree::rayCast().

Member Data Documentation

◆ dir

template<typename T >
Vector3Tpl<T> Ray< T >::dir

◆ invDir

template<typename T >
Vector3Tpl<T> Ray< T >::invDir

Definition at line 44 of file RayAndBox.h.

Referenced by AABB< T >::intersects(), and Ray< T >::Ray().

◆ origin

template<typename T >
Vector3Tpl<T> Ray< T >::origin

◆ sign

template<typename T >
Tuple3i Ray< T >::sign

Definition at line 45 of file RayAndBox.h.

Referenced by AABB< T >::intersects(), and Ray< T >::Ray().


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