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 provides 5 methods for working with FVector2 objects in Python programs.
Available methods include: __init__, dot, length, normalize, parse.
All 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) | |
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 |