---
Product: Aspose.3D
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/python/fvector3
---

# FVector3

## Overview

`FVector3` is a class in Aspose.3D FOSS for Python.

FVector3.zero returns a vector with all components set to 0.

This class declares 11 methods for FVector3 objects in Python programs.
Available methods include: `__eq__`, `__getitem__`, `__init__`, `__repr__`, `__setitem__`, `normalize`, `one`, `unit_x`, `unit_y`, `unit_z`, `zero`.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: `x`, `y`, `z`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `x` | `float` | Read/Write | Gets or sets the x. |
| `y` | `float` | Read/Write | Gets or sets the y. |
| `z` | `float` | Read/Write | Gets or sets the z. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(x, y, z)` | Calls __init__(x, y, z) on this FVector3 instance. |
| `zero()` → `'FVector3'` | Returns a vector with all components set to 0 |
| `one()` → `'FVector3'` | Returns a vector with all components set to 1 |
| `unit_x()` → `'FVector3'` | Returns a unit vector pointing along the X axis (1,0,0) |
| `unit_y()` → `'FVector3'` | Calls unit_y on this FVector3 instance. |
| `unit_z()` → `'FVector3'` | Calls unit_z on this FVector3 instance. |
| `normalize()` → `'FVector3'` | Returns a vector with the same direction but length of 1 |
| `__getitem__(key: int)` → `float` | Calls __getitem__(key) on this FVector3 instance. |
| `__setitem__(key: int, value: float)` | Calls __setitem__(key, value) on this FVector3 instance. |
| `__repr__()` → `str` | Calls __repr__ on this FVector3 instance. |
| `__eq__(other)` → `bool` | Calls __eq__(other) on this FVector3 instance. |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)