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 >:
[legend]

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.

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

Member Data Documentation

◆ dir

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

◆ invDir

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

◆ origin

◆ sign

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

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