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 declares 11 methods for FVector2 objects in Python programs. Available methods include: __add__, __eq__, __init__, __mul__, __repr__, __sub__, __truediv__, dot, length, normalize, parse. 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)Calls init(x, y) on this FVector2 instance.
__repr__() → strCalls repr on this FVector2 instance.
__eq__(other) → boolCalls eq(other) on this FVector2 instance.
__add__(other: 'FVector2') → 'FVector2'Calls add(other) on this FVector2 instance.
__sub__(other: 'FVector2') → 'FVector2'Calls sub(other) on this FVector2 instance.
__mul__(scalar: float) → 'FVector2'Calls mul(scalar) on this FVector2 instance.
__truediv__(scalar: float) → 'FVector2'Calls truediv(scalar) on this FVector2 instance.
length() → floatCalls length on this FVector2 instance.
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

 English