Array

Inheritance diagram of rumba.Array
class Array

An array of values.

The values in the array can have any type.

Constructors

__init__

Array() -> None

Methods

__getitem__

operator[](i: int) -> Value

__len__

__lshift__

operator<<(value: Value) -> Array

append

Alias for push_back, only available in Python.

as_Box3f(i)

Returns the i-th value as a Box3f.

as_M44d(i)

Returns the i-th value as a M44d.

as_Quatd(i)

Returns the i-th value as a Quatd.

as_V2d(i)

Returns the i-th value as a V2d.

as_V3d(i)

Returns the i-th value as a V3d.

as_V4d(i)

Returns the i-th value as a V4d.

as_bool(i)

Returns a value as a bool.

as_double(i)

Returns the i-th value as a float.

as_float(i)

Returns the i-th value as a float.

as_int(i)

Returns the i-th value as an integer.

as_string(i)

Returns the i-th value as a string.

push_back(value)

Insert a value at the end of the array.

read(i)

Returns the i-th value.

resize(size)

resize the array.

size()

Returns the array size.

write(i, v)

Write the i-th array element.