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

# FVector2

## Overview

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

FVector2.normalize returns a new FVector2 with the same direction and unit length.

This class declares 11 methods for FVector2 objects in Python programs.
Available methods include: `__add__`, `__eq__`, `__init__`, `__mul__`, `__repr__`, `__sub__`, `__truediv__`, `dot`, `length`, `normalize`, `parse`.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: `x`, `y`.

## Properties

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

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(x, y)` | Calls __init__(x, y) on this FVector2 instance. |
| `__repr__()` → `str` | Calls __repr__ on this FVector2 instance. |
| `__eq__(other)` → `bool` | Calls __eq__(other) on this FVector2 instance. |
| `__add__(other: 'FVector2')` → `'FVector2'` | Calls __add__(other) on this FVector2 instance. |
| `__sub__(other: 'FVector2')` → `'FVector2'` | Calls __sub__(other) on this FVector2 instance. |
| `__mul__(scalar: float)` → `'FVector2'` | Calls __mul__(scalar) on this FVector2 instance. |
| `__truediv__(scalar: float)` → `'FVector2'` | Calls __truediv__(scalar) on this FVector2 instance. |
| `length()` → `float` | Calls length on this FVector2 instance. |
| `normalize()` → `'FVector2'` | Returns a new FVector2 with the same direction and unit length |
| `dot(other: 'FVector2')` → `float` | Computes the scalar dot product with another FVector2 |
| `parse(input: str)` | Creates an FVector2 from a string representation of two numbers |

## See Also

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