Chris Bracken
dbc9b1a856
lerpDouble: stricter handling of NaN and infinity ( #20871 )
...
Previously, the behaviour of lerpDouble with respect to NaN and infinity
was relatively complex and difficult to reason about. This patch
simplifies the behaviour with respect to those conditions and adds
documentation and tests.
In general, if `a == b` or both values are null, infinite, or NaN, `a`
is returned. Otherwise we require `a` and `b` and `t` to be finite or
null and the result of the linear interpolation is returned.
2020-08-30 11:08:59 -07:00
..
2020-02-20 11:04:00 -08:00
2020-08-30 11:08:59 -07:00
2020-08-27 17:38:02 -07:00
2020-08-16 21:20:26 -07:00
2020-07-28 17:46:02 -07:00
2020-08-26 18:15:40 -07:00
2020-02-20 11:04:00 -08:00
2020-04-02 13:04:49 -07:00
2020-01-21 11:16:59 -08:00
2020-01-21 11:16:59 -08:00
2020-04-17 07:24:40 -04:00
2020-04-17 07:24:40 -04:00
2020-08-19 19:09:51 -07:00
2019-12-03 14:33:02 -08:00
2020-04-13 16:50:11 -07:00
2020-03-11 13:36:01 -07:00
2020-02-18 15:31:04 -08:00
2020-02-18 15:31:04 -08:00
2020-05-10 10:24:56 -07:00
2020-05-10 10:24:56 -07:00
2020-06-30 10:55:38 -07:00
2020-06-30 10:55:38 -07:00
2020-01-24 12:43:32 -08:00
2019-12-03 14:33:02 -08:00
2020-07-22 15:38:09 -07:00
2020-04-21 08:46:57 -04:00
2020-03-10 16:31:06 -07:00
2020-08-30 11:07:05 -07:00
2019-12-02 16:38:03 -08:00
2019-10-08 11:33:26 -07:00
2019-10-16 17:28:31 -07:00
2020-08-26 15:53:01 -07:00
2020-08-26 15:53:01 -07:00
2020-07-28 13:32:09 -07:00
2020-07-28 13:32:09 -07:00
2019-11-22 23:03:34 -08:00
2020-07-28 13:32:09 -07:00
2020-07-28 13:32:09 -07:00
2020-02-18 15:31:04 -08:00
2020-02-18 15:31:04 -08:00
2019-12-13 17:28:21 -08:00
2020-07-30 18:34:51 -07:00
2019-12-13 17:28:21 -08:00
2019-12-03 14:33:02 -08:00
2019-12-03 14:33:02 -08:00
2019-10-09 18:12:57 -07:00
2019-10-08 11:33:26 -07:00