Sha256: 60a9ab4a5cbe46b4ce83f0bc282df1c95ce014957977fb6a617106342af7b843
Contents?: true
Size: 553 Bytes
Versions: 3
Compression:
Stored size: 553 Bytes
Contents
// -*- c++ -*- #pragma once #ifndef __RAYS_SRC_MATRIX_H__ #define __RAYS_SRC_MATRIX_H__ #include <glm/mat4x4.hpp> #include "rays/matrix.h" namespace Rays { typedef glm::mat<4, 4, coord> Mat4; inline Mat4& to_glm ( Matrix& val) {return *( Mat4*) &val;} inline const Mat4& to_glm (const Matrix& val) {return *(const Mat4*) &val;} inline Matrix& to_rays ( Mat4& val) {return *( Matrix*) &val;} inline const Matrix& to_rays (const Mat4& val) {return *(const Matrix*) &val;} }// Rays #endif//EOH
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rays-0.3.2 | src/matrix.h |
rays-0.3.1 | src/matrix.h |
rays-0.3 | src/matrix.h |