FVector2

Overview

FVector2 is a class in Aspose.3D FOSS for Python.

FVector2.normalize returns a new FVector2 with the same direction and unit length.

This class provides 5 methods for working with FVector2 objects in Python programs. Available methods include: __init__, dot, length, normalize, parse. All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package. Properties: x, y.

Properties

NameTypeAccessDescription
xfloatRead/WriteGets or sets the x.
yfloatRead/WriteGets or sets the y.

Methods

SignatureDescription
__init__(x, y)
length()float
normalize()'FVector2'Returns a new FVector2 with the same direction and unit length
dot(other: 'FVector2')floatComputes the scalar dot product with another FVector2
parse(input: str)Creates an FVector2 from a string representation of two numbers

See Also