Vector2
Overview
Vector2 is a class in Aspose.3d for Python.
Vector2.set assigns new_x to the x component and new_y to the y component.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
x | float | Read | Holds the vector’s horizontal (X) coordinate |
y | float | Read | Holds the vector’s vertical (Y) coordinate |
length | float | Read | |
length2 | float | Read |
Methods
| Signature | Description |
|---|---|
__init__(x: float, y: float) | |
set(new_x: float, new_y: float) | Assigns new_x to the x component and new_y to the y component |
parse(input: str) | Reads a string and sets the vector’s components accordingly |