UNPKG

@cearth/tools

Version:
86 lines (40 loc) 964 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@cearth/tools](./tools.md) &gt; [translationMatrixReferFrame](./tools.translationmatrixreferframe.md) ## translationMatrixReferFrame() function 创建相对于指定参考系下的平移矩阵 **Signature:** ```typescript export declare function translationMatrixReferFrame(offset: Cartesian3, referFrame: Matrix4, result?: Matrix4 | null): Matrix4; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> offset </td><td> Cartesian3 </td><td> </td></tr> <tr><td> referFrame </td><td> Matrix4 </td><td> </td></tr> <tr><td> result </td><td> Matrix4 \| null </td><td> _(Optional)_ </td></tr> </tbody></table> **Returns:** Matrix4 ## Remarks 会改原来的矩阵