@cearth/tools 2.6.0 → 2.7.0

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.
@@ -1,14 +1,8 @@
1
- import type { Cesium3DTileset, Ellipsoid, TranslationRotationScale } from "cesium";
1
+ import type { Cesium3DTileset, Cesium3DTile, Ellipsoid, TranslationRotationScale } from "cesium";
2
2
  import { Matrix4 } from "cesium";
3
3
  import type { LocalTRS_WorldMatrix4_ENU_Convert } from "../math/index";
4
4
  import type { MatrixComposeOrderName } from "@web-3d/tools";
5
- export interface Tileset_enuTRS_modelMatrix_Convert extends Omit<LocalTRS_WorldMatrix4_ENU_Convert, "decompose"> {
6
- /**
7
- * 解构 3dtileset 的 ENU 局部坐标系下的平移、旋转、缩放
8
- * @param result
9
- * @returns 局部坐标系下的平移、旋转、缩放
10
- */
11
- decompose(result?: TranslationRotationScale | null): TranslationRotationScale;
5
+ export interface Tile_enuTRS_modelMatrix_Convert extends LocalTRS_WorldMatrix4_ENU_Convert {
12
6
  /**
13
7
  * 右矩阵
14
8
  * @remarks
@@ -17,6 +11,22 @@ export interface Tileset_enuTRS_modelMatrix_Convert extends Omit<LocalTRS_WorldM
17
11
  */
18
12
  right: Matrix4;
19
13
  }
14
+ /**
15
+ * ENU本地坐标系下的平移、旋转、缩放 与 3dtileset 的 modelMatrix 矩阵 之间的转换
16
+ * @param tile 3DTileset实例
17
+ * @param order 矩阵组合顺序,默认trs
18
+ * @param ellipsoid 椭球模型,默认WGS84椭球
19
+ * @returns
20
+ */
21
+ export declare function tile_enuTRS_modelMatrix_Convert(tile: Cesium3DTile, order?: MatrixComposeOrderName | null, ellipsoid?: Ellipsoid | null): Tile_enuTRS_modelMatrix_Convert;
22
+ export interface Tileset_enuTRS_modelMatrix_Convert extends Omit<Tile_enuTRS_modelMatrix_Convert, "decompose"> {
23
+ /**
24
+ * 解构 3dtileset 的 ENU 局部坐标系下的平移、旋转、缩放
25
+ * @param result
26
+ * @returns 局部坐标系下的平移、旋转、缩放
27
+ */
28
+ decompose(result?: TranslationRotationScale | null): TranslationRotationScale;
29
+ }
20
30
  /**
21
31
  * ENU本地坐标系下的平移、旋转、缩放 与 3dtileset 的 modelMatrix 矩阵 之间的转换
22
32
  * @param tileset 3DTileset实例
@@ -1 +1 @@
1
- {"version":3,"file":"3DTileset.d.ts","sourceRoot":"","sources":["../../src/tile/3DTileset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAQ,KAAK,EAAE,iCAAiC,EAAE,MAAM,eAAe,CAAC;AAExE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAG5D,MAAM,WAAW,kCAAmC,SAAQ,IAAI,CAAC,iCAAiC,EAAC,WAAW,CAAC;IAE3G;;;;OAIG;IACH,SAAS,CAAC,MAAM,CAAC,EAAC,wBAAwB,GAAC,IAAI,GAAE,wBAAwB,CAAC;IAE1E;;;;;OAKG;IACH,KAAK,EAAC,OAAO,CAAC;CACjB;AAGD;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAAC,OAAO,EAAC,eAAe,EAAC,KAAK,CAAC,EAAC,sBAAsB,GAAC,IAAI,EAAC,SAAS,CAAC,EAAE,SAAS,GAAC,IAAI,GAAE,kCAAkC,CA2B3K"}
1
+ {"version":3,"file":"3DTileset.d.ts","sourceRoot":"","sources":["../../src/tile/3DTileset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAC,YAAY,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAQ,KAAK,EAAE,iCAAiC,EAAE,MAAM,eAAe,CAAC;AAExE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM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