Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
Ray Class Reference
Inheritance diagram for Ray:
[legend]
Collaboration diagram for Ray:
[legend]

Public Member Functions

 Ray (const glm::vec3 &origin, const glm::vec3 &direction)
 
const glm::vec3 & origin () const
 
void setOrigin (const glm::vec3 &origin)
 
const glm::vec3 & direction () const
 
void setDirection (const glm::vec3 &direction)
 
virtual bool intersects (const Sphere &sphere) const override
 
virtual bool nearTo (const TAABB< int > &aabb) const override
 
virtual bool containedBy (const TAABB< int > &aabb) const override
 

Static Public Member Functions

static Ray fromTo (const glm::vec3 &from, const glm::vec3 &to)
 

Protected Attributes

glm::vec3 m_origin
 
glm::vec3 m_direction
 

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