Float4
- class carb.Float4
Bases:
pybind11_object
A quadruplet of floating point values. These can be accessed via the named attributes, `x`, `y`, `z` & `w`, but also support sequence access, making them work where a list or tuple is expected.
>>> v = [1, 2, 3, 4] f = carb.Float4(v) >>> f[0] 1.0 >>> f.y 2.0 >>> f[2] 3.0 >>> f.w 4.0
Methods
__init__
(*args, **kwargs)Overloaded function.
Attributes
w
x
y
z
- __init__(*args, **kwargs)
Overloaded function.
__init__(self: carb._carb.Float4) -> None
__init__(self: carb._carb.Float4, arg0: float, arg1: float, arg2: float, arg3: float) -> None
__init__(self: carb._carb.Float4, arg0: sequence) -> None