FVector2
Overview
FVector2 is a class in Aspose.3d for Python.
FVector2 provides 2‑D vector operations such as length calculation, normalization, dot product, and parsing from strings.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
x | float | Read | Stores the horizontal component of the vector as a float |
y | float | Read | Stores the vertical component of the vector as a float |
Methods
| Signature | Description |
|---|---|
__init__(x, y) | |
length() → float | |
normalize() → 'FVector2' | Scales the vector to unit length and returns the modified FVector2 |
dot(other: 'FVector2') → float | Computes the scalar dot product with another FVector2 |
parse(input: str) | Creates or updates the vector from a string representation of two numbers |