mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 13:39:18 +02:00
Merge branch 'tmj-dev' into milek-dev
This commit is contained in:
9
dumb3d.h
9
dumb3d.h
@@ -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]; }
|
||||
|
||||
Reference in New Issue
Block a user