hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
56 lines (27 loc) • 734 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Quaternion](./server.quaternion.md) > [power](./server.quaternion.power.md)
## Quaternion.power() method
Raises the current quaternion to a power.
**Signature:**
```typescript
power(exponent: number): Quaternion;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
exponent
</td><td>
number
</td><td>
The exponent to raise the quaternion to.
</td></tr>
</tbody></table>
**Returns:**
[Quaternion](./server.quaternion.md)
The current quaternion.