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

NameTypeAccessDescription
xfloatReadHolds the vector’s horizontal (X) coordinate
yfloatReadHolds the vector’s vertical (Y) coordinate
lengthfloatRead
length2floatRead

Methods

SignatureDescription
__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