geolib2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
geo::Ray Class Reference

#include <Ray.h>

Public Member Functions

const Vector3getDirection () const
 
const Vector3getInvDirection () const
 
double getLength () const
 
const Vector3getOrigin () const
 
const std::array< int, 3 > & getSign () const
 
 Ray (const Vector3 &o, const Vector3 &d)
 
void setLength (const double length)
 

Protected Member Functions

void calculateInvDirection ()
 

Protected Attributes

Vector3 direction_
 
Vector3 inv_direction_
 
double length_
 
Vector3 origin_
 
std::array< int, 3 > sign_
 

Detailed Description

Definition at line 10 of file Ray.h.

Constructor & Destructor Documentation

◆ Ray()

geo::Ray::Ray ( const Vector3 o,
const Vector3 d 
)

Definition at line 5 of file Ray.cpp.

Member Function Documentation

◆ calculateInvDirection()

void geo::Ray::calculateInvDirection ( )
protected

Definition at line 14 of file Ray.cpp.

◆ getDirection()

const Vector3& geo::Ray::getDirection ( ) const
inline

Definition at line 18 of file Ray.h.

◆ getInvDirection()

const Vector3& geo::Ray::getInvDirection ( ) const
inline

Definition at line 20 of file Ray.h.

◆ getLength()

double geo::Ray::getLength ( ) const
inline

Definition at line 22 of file Ray.h.

◆ getOrigin()

const Vector3& geo::Ray::getOrigin ( ) const
inline

Definition at line 16 of file Ray.h.

◆ getSign()

const std::array<int, 3>& geo::Ray::getSign ( ) const
inline

Definition at line 24 of file Ray.h.

◆ setLength()

void geo::Ray::setLength ( const double  length)
inline

Definition at line 26 of file Ray.h.

Member Data Documentation

◆ direction_

Vector3 geo::Ray::direction_
protected

Definition at line 32 of file Ray.h.

◆ inv_direction_

Vector3 geo::Ray::inv_direction_
protected

Definition at line 34 of file Ray.h.

◆ length_

double geo::Ray::length_
protected

Definition at line 36 of file Ray.h.

◆ origin_

Vector3 geo::Ray::origin_
protected

Definition at line 30 of file Ray.h.

◆ sign_

std::array<int, 3> geo::Ray::sign_
protected

Definition at line 38 of file Ray.h.


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