
## Vector3 class

A vector with three components.



The Vector3 type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [`__init__(self, x, y, z)`](/3d/python-net/aspose.threed.utilities/vector3/__init__/#float-float-float) | Initializes a new instance of the [`Vector3`](/3d/python-net/aspose.threed.utilities/vector3) struct. |
| [`__init__(self, vec)`](/3d/python-net/aspose.threed.utilities/vector3/__init__/#aspose.threed.utilities.fvector3) | Initializes a new instance of the [`Vector3`](/3d/python-net/aspose.threed.utilities/vector3) struct. |
| [`__init__(self, v)`](/3d/python-net/aspose.threed.utilities/vector3/__init__/#float) | Initializes a new instance of the [`Vector3`](/3d/python-net/aspose.threed.utilities/vector3) struct. |
| [`__init__(self, vec4)`](/3d/python-net/aspose.threed.utilities/vector3/__init__/#aspose.threed.utilities.vector4) | Initializes a new instance of the [`Vector3`](/3d/python-net/aspose.threed.utilities/vector3) struct. |
| [`__init__(self)`](/3d/python-net/aspose.threed.utilities/vector3/__init__/#) | Constructs a new instance of Vector3 |


### Properties
| Property | Description |
| :- | :- |
| [length2](/3d/python-net/aspose.threed.utilities/vector3/length2) | Gets the square of the length. |
| [length](/3d/python-net/aspose.threed.utilities/vector3/length) | Gets the length of this vector. |
| [zero](/3d/python-net/aspose.threed.utilities/vector3/zero) | Gets unit vector (0, 0, 0) |
| [one](/3d/python-net/aspose.threed.utilities/vector3/one) | Gets unit vector (1, 1, 1) |
| [unit_x](/3d/python-net/aspose.threed.utilities/vector3/unit_x) | Gets unit vector (1, 0, 0) |
| [unit_y](/3d/python-net/aspose.threed.utilities/vector3/unit_y) | Gets unit vector (0, 1, 0) |
| [unit_z](/3d/python-net/aspose.threed.utilities/vector3/unit_z) | Gets unit vector (0, 0, 1) |
| [x](/3d/python-net/aspose.threed.utilities/vector3/x) | The x component. |
| [y](/3d/python-net/aspose.threed.utilities/vector3/y) | The y component. |
| [z](/3d/python-net/aspose.threed.utilities/vector3/z) | The z component. |


### Indexer
| Name | Description |
| :- | :- |
| [index] |  |


### Methods
| Method | Description |
| :- | :- |
| [`angle_between(self, dir, up)`](/3d/python-net/aspose.threed.utilities/vector3/angle_between/#aspose.threed.utilities.vector3-aspose.threed.utilities.vector3) | Calculate the inner angle between two direction<br/>Two direction can be non-normalized vectors |
| [`angle_between(self, dir)`](/3d/python-net/aspose.threed.utilities/vector3/angle_between/#aspose.threed.utilities.vector3) | Calculate the inner angle between two direction<br/>Two direction can be non-normalized vectors |
| [`dot(self, rhs)`](/3d/python-net/aspose.threed.utilities/vector3/dot/#aspose.threed.utilities.vector3) | Gets the dot product of two vectors |
| [`normalize(self)`](/3d/python-net/aspose.threed.utilities/vector3/normalize/#) | Normalizes this instance. |
| [`sin(self)`](/3d/python-net/aspose.threed.utilities/vector3/sin/#) | Calculates sine on each component |
| [`cos(self)`](/3d/python-net/aspose.threed.utilities/vector3/cos/#) | Calculates cosine on each component |
| [`cross(self, rhs)`](/3d/python-net/aspose.threed.utilities/vector3/cross/#aspose.threed.utilities.vector3) | Cross product of two vectors |
| [`set(self, new_x, new_y, new_z)`](/3d/python-net/aspose.threed.utilities/vector3/set/#float-float-float) | Sets the x/y/z component in one call. |
| [`compare_to(self, other)`](/3d/python-net/aspose.threed.utilities/vector3/compare_to/#aspose.threed.utilities.vector3) | Compare current vector to another instance. |



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