# Cinder

# cinder::Ray Class Reference

`#include <Ray.h>`

List of all members.

## Public Member Functions
| Ray ()
| Ray (const Vec3f &aOrigin, const Vec3f &aDirection)
void | setOrigin (const Vec3f &aOrigin)
const Vec3f & | getOrigin () const
void | setDirection (const Vec3f &aDirection)
const Vec3f & | getDirection () const
const Vec3f & | getInverseDirection () const
char | getSignX () const
char | getSignY () const
char | getSignZ () const
Vec3f | calcPosition (float t) const
## Protected Attributes
Vec3f | mOrigin
Vec3f | mDirection
char | mSignX
char | mSignY
char | mSignZ
Vec3f | mInvDirection

## Constructor & Destructor Documentation

cinder::Ray::Ray | ( |  | ) |

cinder::Ray::Ray | ( | const Vec3f & | aOrigin,
|  | const Vec3f & | aDirection |
| ) |  |  |

## Member Function Documentation

void cinder::Ray::setOrigin | ( | const Vec3f & | aOrigin | ) |

const Vec3f& cinder::Ray::getOrigin | ( |  | ) | const

void cinder::Ray::setDirection | ( | const Vec3f & | aDirection | ) |

const Vec3f& cinder::Ray::getDirection | ( |  | ) | const

const Vec3f& cinder::Ray::getInverseDirection | ( |  | ) | const

char cinder::Ray::getSignX | ( |  | ) | const

char cinder::Ray::getSignY | ( |  | ) | const

char cinder::Ray::getSignZ | ( |  | ) | const

Vec3f cinder::Ray::calcPosition | ( | float | t | ) | const

## Member Data Documentation

Vec3f cinder::Ray::mOrigin`[protected]`

Vec3f cinder::Ray::mDirection`[protected]`

char cinder::Ray::mSignX`[protected]`

char cinder::Ray::mSignY`[protected]`

char cinder::Ray::mSignZ`[protected]`

Vec3f cinder::Ray::mInvDirection`[protected]`

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

- include/cinder/Ray.h