会员
周边
新闻
博问
闪存
众包
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Anytime you find yourself writing code of the form “if the object is of type T1, then do something, but if it’s of type T2, then do something else,” slap yourself.
管理
2022年5月21日
Graphics线性差值函数
摘要: Lerp 该函数根据 't' 参数在 [start..end] 范围内进行插值,其中 't' 通常在 [0..1] 范围内。它非常适合回答棘手的数学问题,例如:“56 到 132 之间的 35% 是多少?” 就可以这样计算 lerp(56, 132, 0.35)。 const lerp = (x,
阅读全文
posted @ 2022-05-21 18:09 xiaoluo1234
阅读(127)
评论(0)
推荐(0)