16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 14:49:19 +02:00

refactoring: application mode code split

This commit is contained in:
tmj-fstate
2018-08-02 20:39:19 +02:00
parent 460bf6d382
commit ff6bed67a9
74 changed files with 5375 additions and 2921 deletions

View File

@@ -68,12 +68,13 @@ class vector3
vector3( scalar_t X, scalar_t Y, scalar_t Z ) :
x( X ), y( Y ), z( Z )
{}
vector3( glm::dvec3 const &Vector ) :
template <typename Type_, glm::precision Precision_>
vector3( glm::tvec3<Type_, Precision_> const &Vector ) :
x( Vector.x ), y( Vector.y ), z( Vector.z )
{}
template <glm::precision Precision_>
operator glm::tvec3<double, Precision_>() const {
return glm::tvec3<double, Precision_>{ x, y, z }; }
template <typename Type_, glm::precision Precision_>
operator glm::tvec3<Type_, Precision_>() const {
return glm::tvec3<Type_, Precision_>{ x, y, z }; }
// The int parameter is the number of elements to copy from initArray (3 or 4)
// explicit vector3(scalar_t* initArray, int arraySize = 3)
// { for (int i = 0;i<arraySize;++i) e[i] = initArray[i]; }