bbi.math.vector4

class Vector4(x: float = 0, y: float = 0, z: float = 0, w: float = 0)

Bases: object

A 3D vector defined by x, y, z and w values.

By convention, units for world space are in meters.

Parameters:
  • x (float, optional) – The x value. Defaults to 0.

  • y (float, optional) – The y value. Defaults to 0.

  • z (float, optional) – The z value. Defaults to 0.

  • w (float, optional) – The w value. Defaults to 0.

static zero() Vector4

Returns a zero vector Vector4(0, 0, 0, 0).

numpy() ndarray

Returns the vector as a NumPy array of shape (4,).