FVector3

Overview

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

FVector3.zero returns a vector with all components set to 0.

This class declares 11 methods for FVector3 objects in Python programs. Available methods include: __eq__, __getitem__, __init__, __repr__, __setitem__, normalize, one, unit_x, unit_y, unit_z, zero. Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package. Properties: x, y, z.

Properties

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

Methods

SignatureDescription
__init__(x, y, z)Calls init(x, y, z) on this FVector3 instance.
zero() → 'FVector3'Returns a vector with all components set to 0
one() → 'FVector3'Returns a vector with all components set to 1
unit_x() → 'FVector3'Returns a unit vector pointing along the X axis (1,0,0)
unit_y() → 'FVector3'Calls unit_y on this FVector3 instance.
unit_z() → 'FVector3'Calls unit_z on this FVector3 instance.
normalize() → 'FVector3'Returns a vector with the same direction but length of 1
__getitem__(key: int) → floatCalls getitem(key) on this FVector3 instance.
__setitem__(key: int, value: float)Calls setitem(key, value) on this FVector3 instance.
__repr__() → strCalls repr on this FVector3 instance.
__eq__(other) → boolCalls eq(other) on this FVector3 instance.

See Also

 English