Float2#
- class carb.Float2#
Bases:
pybind11_object
Pair of floating point values. These can be accessed via the named attributes, `x` & `y`, but also support sequence access, making them work where a list or tuple is expected.
>>> f = carb.Float2(1.0, 2.0) >>> f[0] 1.0 >>> f.y 2.0
Methods
__init__
(*args, **kwargs)Overloaded function.
Attributes
x
y
- __init__(*args, **kwargs)#
Overloaded function.
__init__(self: carb._carb.Float2) -> None
__init__(self: carb._carb.Float2, arg0: float, arg1: float) -> None
__init__(self: carb._carb.Float2, arg0: sequence) -> None