hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
86 lines (40 loc) • 987 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Quaternion](./server.quaternion.md) > [fromEuler](./server.quaternion.fromeuler.md)
## Quaternion.fromEuler() method
Creates a quaternion from Euler angles.
**Signature:**
```typescript
static fromEuler(x: number, y: number, z: number): Quaternion;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
x
</td><td>
number
</td><td>
The x-component of the Euler angles in degrees.
</td></tr>
<tr><td>
y
</td><td>
number
</td><td>
The y-component of the Euler angles in degrees.
</td></tr>
<tr><td>
z
</td><td>
number
</td><td>
The z-component of the Euler angles in degrees.
</td></tr>
</tbody></table>
**Returns:**
[Quaternion](./server.quaternion.md)