UNPKG

@cearth/tools

Version:
83 lines (38 loc) 953 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@cearth/tools](./tools.md) &gt; [localQuaternionToWorld](./tools.localquaterniontoworld.md) ## localQuaternionToWorld() function 将局部坐标系下的四元数转为世界坐标系下的四元数 **Signature:** ```typescript export declare function localQuaternionToWorld(quate: Quaternion, referFrame: Matrix4, result?: Quaternion | null): Quaternion | null; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> quate </td><td> Quaternion </td><td> </td></tr> <tr><td> referFrame </td><td> Matrix4 </td><td> </td></tr> <tr><td> result </td><td> Quaternion \| null </td><td> _(Optional)_ </td></tr> </tbody></table> **Returns:** Quaternion \| null