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
| Name | Type | Access | Description |
|---|---|---|---|
x | float | Read/Write | Gets or sets the x. |
y | float | Read/Write | Gets or sets the y. |
z | float | Read/Write | Gets or sets the z. |
w | float | Read/Write | Gets or sets the w. |
Methods
| Signature | Description |
|---|---|
__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) → float | Calls getitem(key) on this Vector4 instance. |
__setitem__(key: int, value: float) | Calls setitem(key, value) on this Vector4 instance. |
__repr__() → str | Calls repr on this Vector4 instance. |
__eq__(other) → bool | Calls eq(other) on this Vector4 instance. |