From 8c70cb4848e835a4054a8de6d50eeccbe893bb6b Mon Sep 17 00:00:00 2001 From: Tobias Gurdan Date: Sun, 19 May 2019 23:02:19 +0200 Subject: [PATCH] Fix lch lerp bug after change from hcl and replace output image --- docs/images/interpolations/lerpLch.png | Bin 470 -> 462 bytes src/functions.cpp | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/images/interpolations/lerpLch.png b/docs/images/interpolations/lerpLch.png index 648d5bb6a273b22b7b634f8897ba8f694ea26b42..a80ab58cf2b002afbe2cca2776f1aa99e9818111 100644 GIT binary patch literal 462 zcmeAS@N?(olHy`uVBq!ia0y~yU;;836gWWCYt8UYK#H@#BeIx*fj<$18CTdZ&tza= zZ18k(45^s&_NrspVFMmkhwje@Gc6ZHwk(_UR_xoXNYy^oCoTKr@5j$CzH=#c$?Iy{ zSMy$5ZM$VC->skh{QtJ6wwrstr`_&8D5rXUQ_->eYQ=9tw-)@oYwURl4^*Lca%x9s0!bo{zkzLoE;uAIWSjq`a&)wC7tYwVY- zxO<9WqgiL}?XNE^-gbOh_vp&=8}_Fh*LB}0TQ}8*+u-pez9`BCz$_l z*Ye*q_4t~@I?_RJADg}1GyfT{JafY|76yl4CWZx?j0_j1Ffe3zF))~@GBC^%Vqoy) fWN27M6X{=!vs2fk*S+_x07aLltDnm{r-UW|m>0P0 literal 470 zcmeAS@N?(olHy`uVBq!ia0y~yU;;836gWWCYt8UYK#H@#BeIx*fj<$18CTdZ&tza= z?C^AP45^s&_NrslVFdxUfMcIuX4=j_+WM2p+2d8+z33|ri47`W``@oWf6uRWZ%1tU zYu$6lW@|34h~GNX75n|<=N^Bs@3qZ8mv!H+?9{vaKk!3_i`?Y)uQkr=*dzJw zefFE?`unHg&Wdc^pyHjn$x|~j`5*syo%h>DpZE1ky_~-N?{as$ypu^@Zf(EU;qv1d z_m-aZw&bt7KXaZ_597;=Tb_%qe|+3{w`~3Q?x_7z)wicag}?kP_)kyiTX3KBrkv!g zV?nt!r8iT)q( glm::pi() ) { - delta.x -= glm::two_pi(); - } else if ( delta.x < - glm::pi() ) { - delta.x += glm::two_pi(); + if ( delta.z > glm::pi() ) { + delta.z -= glm::two_pi(); + } else if ( delta.z < - glm::pi() ) { + delta.z += glm::two_pi(); } return lch1 + t * delta;