Vector2
Overview
Vector2 is a class in Aspose.3D FOSS for Python.
Vector2.set sets the vector’s x and y components to the provided float values.
This class provides 3 methods for working with Vector2 objects in Python programs.
Available methods include: __init__, parse, set.
All exported members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: length, length2, x, y.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
x | float | Read | Gets the x. |
y | float | Read | Gets the y. |
length | float | Read | Gets the length. |
length2 | float | Read | Gets the length2. |
Methods
| Signature | Description |
|---|---|
__init__(x: float, y: float) | |
set(new_x: float, new_y: float) | Sets the vector’s x and y components to the provided float values |
parse(input: str) | Creates a Vector2 from a string representation such as “x,y” |