@galacean/engine-math 1.3.0-alpha.0 → 1.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-math",
3
- "version": "1.3.0-alpha.0",
3
+ "version": "1.3.0-alpha.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -42,4 +42,12 @@ export declare class MathUtil {
42
42
  * @returns The radian value
43
43
  */
44
44
  static degreeToRadian(d: number): number;
45
+ /**
46
+ * Linearly interpolate between two values
47
+ * @param start - Specify the start of the range in which to interpolate
48
+ * @param end - Specify the end of the range in which to interpolate
49
+ * @param t - The blend amount where 0 returns start and 1 end
50
+ * @returns The result of linear blending between start and end
51
+ */
52
+ static lerp(start: number, end: number, t: number): number;
45
53
  }