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.
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 |
_x | `` | Read | |
_y | `` | Read |
Methods
| Signature | Description |
|---|---|
__init__(x, y) | |
length() → float | |
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 |