@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
29 lines (17 loc) • 794 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/tools](./tools.md) > [getQuaternionBetweenVectorsAroundAxis](./tools.getquaternionbetweenvectorsaroundaxis.md)
## getQuaternionBetweenVectorsAroundAxis() function
获取两个向量之间的绕轴旋转
**Signature:**
```typescript
export declare function getQuaternionBetweenVectorsAroundAxis(from: Vector3, to: Vector3, axis: Vector3, result?: Quaternion | null): Quaternion;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| from | Vector3 | 旋转的起始向量 |
| to | Vector3 | 旋转的终点向量 |
| axis | Vector3 | 轴 |
| result | Quaternion \| null | _(Optional)_ |
**Returns:**
Quaternion