Float3

class carb.Float3

Bases: pybind11_object

A triplet of floating point values. These can be accessed via the named attributes, `x`, `y` & `z`, but also support sequence access, making them work where a list or tuple is expected.

>>> v = [1, 2, 3]
f = carb.Float3(v)
>>> f[0]
1.0
>>> f.y
2.0
>>> f[2]
3.0

Methods

__init__(*args, **kwargs)

Overloaded function.

Attributes

x

y

z

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: carb._carb.Float3) -> None

  2. __init__(self: carb._carb.Float3, arg0: float, arg1: float, arg2: float) -> None

  3. __init__(self: carb._carb.Float3, arg0: sequence) -> None