---
title: "Quaternion constructor"
url: "https://reference.aspose.com/3d/python-net/aspose.threed.utilities/quaternion/__init__/"
product: "Aspose.3D for Python via .NET API References"
---


## \_\_init\_\_(self) {#}

Constructs a new instance of Quaternion



```python

def __init__(self):
    ...
```




## \_\_init\_\_(self, w, x, y, z) {#float-float-float-float}

Initializes a new instance of the [`Quaternion`](/3d/python-net/aspose.threed.utilities/quaternion) class.



```python

def __init__(self, w, x, y, z):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| w | float | w component of the quaternion |
| x | float | x component of the quaternion |
| y | float | y component of the quaternion |
| z | float | z component of the quaternion |



### See Also
* module [`aspose.threed.utilities`](../../)
* class [`Quaternion`](/3d/python-net/aspose.threed.utilities/quaternion)
