FVector2

Overview

FVector2 is a class in Aspose.3d for Python.

FVector2 provides 2‑D vector operations such as length calculation, normalization, dot product, and parsing from strings.

Properties

NameTypeAccessDescription
xfloatReadStores the horizontal component of the vector as a float
yfloatReadStores the vertical component of the vector as a float

Methods

SignatureDescription
__init__(x, y)
length()float
normalize()'FVector2'Scales the vector to unit length and returns the modified FVector2
dot(other: 'FVector2')floatComputes the scalar dot product with another FVector2
parse(input: str)Creates or updates the vector from a string representation of two numbers