Visualization Library 2.1.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes | List of all members
vl::Ray Class Reference

The Ray class defines a ray as an origin and direction using real precision. More...

#include <Ray.hpp>

Public Member Functions

const vec3direction () const
 
const vec3origin () const
 
void setDirection (const vec3 &dir)
 
void setOrigin (const vec3 &orig)
 

Protected Attributes

vec3 mDirection
 
vec3 mOrigin
 

Detailed Description

The Ray class defines a ray as an origin and direction using real precision.

Definition at line 41 of file Ray.hpp.

Member Function Documentation

◆ direction()

const vec3& vl::Ray::direction ( ) const
inline

Definition at line 44 of file Ray.hpp.

References mDirection.

Referenced by vl::RayIntersector::intersectTriangle().

◆ origin()

const vec3& vl::Ray::origin ( ) const
inline

Definition at line 45 of file Ray.hpp.

References mOrigin.

Referenced by vl::RayIntersector::intersectTriangle().

◆ setDirection()

void vl::Ray::setDirection ( const vec3 dir)
inline

Definition at line 46 of file Ray.hpp.

References mDirection.

Referenced by vl::Camera::computeRay().

◆ setOrigin()

void vl::Ray::setOrigin ( const vec3 orig)
inline

Definition at line 47 of file Ray.hpp.

References mOrigin.

Referenced by vl::Camera::computeRay().

Member Data Documentation

◆ mDirection

vec3 vl::Ray::mDirection
protected

Definition at line 50 of file Ray.hpp.

Referenced by direction(), and setDirection().

◆ mOrigin

vec3 vl::Ray::mOrigin
protected

Definition at line 51 of file Ray.hpp.

Referenced by origin(), and setOrigin().


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