xl-public-utils 1.0.16 → 1.0.17
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/index.d.ts +7 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -416,6 +416,13 @@ declare module "xl-public-utils" {
|
|
|
416
416
|
* @returns {vec3[]} 平滑之后的点
|
|
417
417
|
*/
|
|
418
418
|
export function smoothCurve(points: vec3[], smoothSize?: number): vec3[];
|
|
419
|
+
/**
|
|
420
|
+
* 计算曲线长度
|
|
421
|
+
* @param {vec3[]} points 曲线
|
|
422
|
+
* @returns {number} 曲线长度
|
|
423
|
+
*/
|
|
424
|
+
|
|
425
|
+
export function getCurveLength(points: vec3[]): number;
|
|
419
426
|
/**
|
|
420
427
|
* 表示一个包含三个轴向的对象
|
|
421
428
|
* @typedef {Object} AxisObject
|