style
This commit is contained in:
parent
a69df0ae02
commit
7b5a0b7ad0
@ -314,8 +314,8 @@ quaternion<T>::look (vector<3,T> fwd, vector<3,T> up)
|
|||||||
CHECK (is_normalised (fwd));
|
CHECK (is_normalised (fwd));
|
||||||
CHECK (is_normalised (up));
|
CHECK (is_normalised (up));
|
||||||
|
|
||||||
constexpr cruft::vector3<T> FWD { 0, 0, -1 };
|
constexpr cruft::vector3<T> FWD { 0, 0, -1 };
|
||||||
constexpr cruft::vector3<T> UP { 0, 1, 0 };
|
constexpr cruft::vector3<T> UP { 0, 1, 0 };
|
||||||
|
|
||||||
// find the rotation from the world fwd to the object fwd
|
// find the rotation from the world fwd to the object fwd
|
||||||
auto q1 = from_to (FWD, fwd);
|
auto q1 = from_to (FWD, fwd);
|
||||||
|
Loading…
Reference in New Issue
Block a user