mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
Update for float, double and unsigned char, unsigned short, short, etc. char was left alone: read why here http://msdn.microsoft.com/en-us/library/cc953fe1.aspx
This commit is contained in:
parent
4c35fd37af
commit
7a8f46b19f
36 changed files with 75 additions and 75 deletions
|
|
@ -262,12 +262,12 @@ QuatF & QuatF::interpolate( const QuatF & q1, const QuatF & q2, F32 t )
|
|||
//-----------------------------------
|
||||
// calculate interpolating coeffs:
|
||||
|
||||
double scale1, scale2;
|
||||
F64 scale1, scale2;
|
||||
if ( (1.0 - cosOmega) > 0.00001 )
|
||||
{
|
||||
// standard case
|
||||
double omega = mAcos(cosOmega);
|
||||
double sinOmega = mSin(omega);
|
||||
F64 omega = mAcos(cosOmega);
|
||||
F64 sinOmega = mSin(omega);
|
||||
scale1 = mSin((1.0 - t) * omega) / sinOmega;
|
||||
scale2 = sign2 * mSin(t * omega) / sinOmega;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue