Vector4

Overview

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

Vector4.set assigns new component values to the vector’s x, y, z, and w fields.

This class declares 6 methods for Vector4 objects in Python programs. Available methods include: __eq__, __getitem__, __init__, __repr__, __setitem__, set. Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package. Properties: w, x, y, z.

Properties

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

Methods

SignatureDescription
__init__()Calls init on this Vector4 instance.
set(new_x: float, new_y: float, new_z: float, new_w: float)Assigns new component values to the vector’s x, y, z, and w fields
__getitem__(key: int) → floatCalls getitem(key) on this Vector4 instance.
__setitem__(key: int, value: float)Calls setitem(key, value) on this Vector4 instance.
__repr__() → strCalls repr on this Vector4 instance.
__eq__(other) → boolCalls eq(other) on this Vector4 instance.

See Also

 English