Visualization Library v1.0.3

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

vl::Ray Class Reference

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

#include <Ray.hpp>

List of all members.

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

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

Definition at line 44 of file Ray.hpp.

References mDirection.

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

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

Definition at line 45 of file Ray.hpp.

References mOrigin.

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

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

Definition at line 46 of file Ray.hpp.

References mDirection.

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

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

Definition at line 50 of file Ray.hpp.

Referenced by direction(), and setDirection().

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:

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:07.
Permission is granted to use this page to write and publish articles regarding Visualization Library.