UNPKG

@cearth/tools

Version:
30 lines (16 loc) 631 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@cearth/tools](./tools.md) &gt; [getTransform](./tools.gettransform.md) ## getTransform() function 获取目标的变换信息 <b>Signature:</b> ```typescript export declare function getTransform(target: PrimitiveObject): Matrix4 | null; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | target | [PrimitiveObject](./tools.primitiveobject.md) | | <b>Returns:</b> Matrix4 \| null ## Remarks 把目标自身上所的携带的变换信息都转换为矩阵