Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Public Attributes | List of all members
smlt::Ray Struct Reference

Public Member Functions

 Ray (const Vec3 &start, const Vec3 &dir)
bool intersects_aabb (const AABB &aabb) const
bool intersects_triangle (const Vec3 &v1, const Vec3 &v2, const Vec3 &v3, Vec3 *intersection=nullptr, Vec3 *normal=nullptr, float *distance=nullptr) const
bool intersects_sphere (const Vec3 &center, const float radius, Vec3 *intersection=nullptr, Vec3 *normal=nullptr, float *distance=nullptr) const

Public Attributes

Vec3 start
Vec3 dir
Vec3 dir_inv

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