ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Math::Ray Class Reference

A three dimensional half-line. More...

#include <ray.h>

Collaboration diagram for Math::Ray:

List of all members.

Public Member Functions

 Ray ()
 Ray (const Vector3d &origin, const Vector3d &direction)
Vector3dgetOrigin ()
Vector3d getOrigin () const
Vector3dgetDirection ()
Vector3d getDirection () const
void transform (const Matrix4 &matrix)
 Apply a transformation to the ray.
void rotate (const Quaternion &rot)
 Rotate the ray using a quaternion.
void translate (const Vector3d &v)
 Translate the ray by a vector.
bool intersectAABB (const AABB &aabb) const
 Test the intersection of the ray with an Axis Aligned Bounding Box.

Private Attributes

Vector3d _origin
Vector3d _direction

Detailed Description

A three dimensional half-line.

Definition at line 36 of file ray.h.


Constructor & Destructor Documentation

Math::Ray::Ray (  ) 

Definition at line 29 of file ray.cpp.

Math::Ray::Ray ( const Vector3d origin,
const Vector3d direction 
)

Definition at line 32 of file ray.cpp.


Member Function Documentation

Vector3d& Math::Ray::getDirection (  )  [inline]

Definition at line 43 of file ray.h.

Vector3d Math::Ray::getDirection (  )  const [inline]

Definition at line 44 of file ray.h.

Vector3d Math::Ray::getOrigin (  )  const [inline]

Definition at line 42 of file ray.h.

Vector3d& Math::Ray::getOrigin (  )  [inline]

Definition at line 41 of file ray.h.

bool Math::Ray::intersectAABB ( const AABB aabb  )  const

Test the intersection of the ray with an Axis Aligned Bounding Box.

Definition at line 54 of file ray.cpp.

void Math::Ray::rotate ( const Quaternion rot  ) 

Rotate the ray using a quaternion.

Definition at line 43 of file ray.cpp.

void Math::Ray::transform ( const Matrix4 matrix  ) 

Apply a transformation to the ray.

Definition at line 37 of file ray.cpp.

void Math::Ray::translate ( const Vector3d v  ) 

Translate the ray by a vector.

Definition at line 49 of file ray.cpp.


Member Data Documentation

Definition at line 68 of file ray.h.

Definition at line 67 of file ray.h.


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


Generated on Sat Jul 13 2019 05:04:35 for ResidualVM by doxygen 1.7.1
curved edge   curved edge