Public Member Functions

  • Ray ()
  • Ray (const vec3 &aOrigin, const vec3 &aDirection)
  • void
    setOrigin (const vec3 &aOrigin)
  • const vec3 &
    getOrigin () const
  • void
    setDirection (const vec3 &aDirection)
  • const vec3 &
    getDirection () const
  • const vec3 &
    getInverseDirection () const
  • char
    getSignX () const
  • char
    getSignY () const
  • char
    getSignZ () const
  • void
    transform (const mat4 &matrix)
  • transformed (const mat4 &matrix) const
  • vec3
    calcPosition (float t) const
  • bool
    calcTriangleIntersection (const vec3 &vert0, const vec3 &vert1, const vec3 &vert2, float *result) const
  • bool
    calcPlaneIntersection (const vec3 &origin, const vec3 &normal, float *result) const

Protected Attributes

  • vec3
    mOrigin
  • vec3
    mDirection
  • char
    mSignX
  • char
    mSignY
  • char
    mSignZ
  • vec3
    mInvDirection