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

NameTypeAccessDescription
xfloatReadGets the x.
yfloatReadGets the y.
lengthfloatReadGets the length.
length2floatReadGets the length2.

Methods

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

See Also