hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
70 lines (33 loc) • 870 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Quaternion](./server.quaternion.md) > [lerp](./server.quaternion.lerp.md)
## Quaternion.lerp() method
Linearly interpolates between the current quaternion and another quaternion.
**Signature:**
```typescript
lerp(quaternion: Quaternion, t: number): Quaternion;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
quaternion
</td><td>
[Quaternion](./server.quaternion.md)
</td><td>
</td></tr>
<tr><td>
t
</td><td>
number
</td><td>
The interpolation factor.
</td></tr>
</tbody></table>
**Returns:**
[Quaternion](./server.quaternion.md)
The current quaternion.