Sha256: 856ce4f96a28565f446618d0c7da7e962caf18e25cf07f3f5edb07d1cebdfd92
Contents?: true
Size: 662 Bytes
Versions: 14
Compression:
Stored size: 662 Bytes
Contents
// -*- c++ -*- #pragma once #ifndef __RAYS_SRC_COORD_H__ #define __RAYS_SRC_COORD_H__ #include <glm/vec2.hpp> #include <glm/vec3.hpp> #include "rays/coord.h" namespace Rays { typedef glm::tvec3<coord, glm::defaultp> Vec3; typedef glm::tvec4<coord, glm::defaultp> Vec4; inline Vec3& to_glm ( Coord3& val) {return *( Vec3*) &val;} inline const Vec3& to_glm (const Coord3& val) {return *(const Vec3*) &val;} template <typename T> inline T& to_rays ( Vec3& val) {return *( T*) &val;} template <typename T> inline const T& to_rays (const Vec3& val) {return *(const T*) &val;} }// Rays #endif//EOH
Version data entries
14 entries across 14 versions & 1 rubygems