// -*- c++ -*- #pragma once #ifndef __RAYS_SRC_COORD_H__ #define __RAYS_SRC_COORD_H__ #include #include #include "rays/coord.h" namespace Rays { typedef glm::tvec3 Vec3; typedef glm::tvec4 Vec4; inline Vec3& to_glm ( Coord3& val) {return *( Vec3*) &val;} inline const Vec3& to_glm (const Coord3& val) {return *(const Vec3*) &val;} template inline T& to_rays ( Vec3& val) {return *( T*) &val;} template inline const T& to_rays (const Vec3& val) {return *(const T*) &val;} }// Rays #endif//EOH