waLBerla 7.2
Loading...
Searching...
No Matches
walberla::mesh::Ray Class Reference

#include <Ray.h>

Public Member Functions

 Ray ()
 
 Ray (Vector3< real_t > origin, Vector3< real_t > direction)
 
const Vector3< real_t > & getOrigin () const
 
const Vector3< real_t > & getDirection () const
 
real_t getDirection (size_t axis) const
 
real_t xDir () const
 
real_t yDir () const
 
real_t zDir () const
 
const Vector3< real_t > & getInvDirection () const
 
real_t getInvDirection (size_t axis) const
 
real_t xInvDir () const
 
real_t yInvDir () const
 
real_t zInvDir () const
 
const Vector3< int8_t > & getInvDirectionSigns () const
 
size_t getImageX () const
 
size_t getImageY () const
 
void setOrigin (const Vector3< real_t > &origin)
 
void setDirection (const Vector3< real_t > &direction)
 
void setImageCoordinate (size_t x, size_t y)
 
void setImageX (size_t x)
 
void setImageY (size_t y)
 
void calcInvDirection ()
 

Private Attributes

Vector3< real_torigin_
 Origin of the ray.
 
Vector3< real_tdirection_
 The normalized direction of the ray.
 
Vector3< real_tinv_direction_
 The inverted direction of the ray.
 
Vector3< int8_tsign_
 The signs of the inverted direction of the ray.
 
size_t imageX_
 Y value of the pixel coordinate this ray intersects.
 
size_t imageY_
 X value of the pixel coordinate this ray intersects.
 

Constructor & Destructor Documentation

◆ Ray() [1/2]

walberla::mesh::Ray::Ray ( )
inline

◆ Ray() [2/2]

walberla::mesh::Ray::Ray ( Vector3< real_t > origin,
Vector3< real_t > direction )
inline

Member Function Documentation

◆ calcInvDirection()

void walberla::mesh::Ray::calcInvDirection ( )
inline

◆ getDirection() [1/2]

const Vector3< real_t > & walberla::mesh::Ray::getDirection ( ) const
inline

◆ getDirection() [2/2]

real_t walberla::mesh::Ray::getDirection ( size_t axis) const
inline

◆ getImageX()

size_t walberla::mesh::Ray::getImageX ( ) const
inline

◆ getImageY()

size_t walberla::mesh::Ray::getImageY ( ) const
inline

◆ getInvDirection() [1/2]

const Vector3< real_t > & walberla::mesh::Ray::getInvDirection ( ) const
inline

◆ getInvDirection() [2/2]

real_t walberla::mesh::Ray::getInvDirection ( size_t axis) const
inline

◆ getInvDirectionSigns()

const Vector3< int8_t > & walberla::mesh::Ray::getInvDirectionSigns ( ) const
inline

◆ getOrigin()

const Vector3< real_t > & walberla::mesh::Ray::getOrigin ( ) const
inline

◆ setDirection()

void walberla::mesh::Ray::setDirection ( const Vector3< real_t > & direction)
inline

◆ setImageCoordinate()

void walberla::mesh::Ray::setImageCoordinate ( size_t x,
size_t y )
inline

◆ setImageX()

void walberla::mesh::Ray::setImageX ( size_t x)
inline

◆ setImageY()

void walberla::mesh::Ray::setImageY ( size_t y)
inline

◆ setOrigin()

void walberla::mesh::Ray::setOrigin ( const Vector3< real_t > & origin)
inline

◆ xDir()

real_t walberla::mesh::Ray::xDir ( ) const
inline

◆ xInvDir()

real_t walberla::mesh::Ray::xInvDir ( ) const
inline

◆ yDir()

real_t walberla::mesh::Ray::yDir ( ) const
inline

◆ yInvDir()

real_t walberla::mesh::Ray::yInvDir ( ) const
inline

◆ zDir()

real_t walberla::mesh::Ray::zDir ( ) const
inline

◆ zInvDir()

real_t walberla::mesh::Ray::zInvDir ( ) const
inline

Member Data Documentation

◆ direction_

Vector3<real_t> walberla::mesh::Ray::direction_
private

The normalized direction of the ray.

◆ imageX_

size_t walberla::mesh::Ray::imageX_
private

Y value of the pixel coordinate this ray intersects.

◆ imageY_

size_t walberla::mesh::Ray::imageY_
private

X value of the pixel coordinate this ray intersects.

◆ inv_direction_

Vector3<real_t> walberla::mesh::Ray::inv_direction_
private

The inverted direction of the ray.

◆ origin_

Vector3<real_t> walberla::mesh::Ray::origin_
private

Origin of the ray.

◆ sign_

Vector3<int8_t> walberla::mesh::Ray::sign_
private

The signs of the inverted direction of the ray.

(Required for Ray-Box intersection code.)


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