- class Value
Base class of all Rumba values.
- Value(v: bool)
Create a boolean value
- Value(v: int)
Create an integer value
- Value(v: float)
Create a float value
- Value(v: double)
Create a double value
- Value(v: v2i)
Create a V2i value
- Value(v: v3i)
Create a V3i value
- as_bool() bool
Returns the value as a bool. You must be sure this value is an integer, a float, a double or a boolean or you get false.
- as_int() int
Returns the value as an integer. You must be sure this value is an integer, a float, a double or a boolean or you get 0.
- as_float() float
Returns the value as a float. You must be sure this value is an integer, a float, a double or a boolean or you get 0.f.
- as_double() double
Returns the value as a float. You must be sure this value is an integer, a float, a double or a boolean or you get 0.f.
- as_string() str
Returns the value as a string. You must be sure this value is a string or you will have an empty string.
- as_V2f() V2f
Returns the value as a V2f. You must be sure this value is a V2f/V2d or you will have {0,0}.
- as_V2d() V2d
Returns the value as a V2d. You must be sure this value is a V2f/V2d or you will have {0,0}.
- as_V3f() V3f
Returns the value as a V3f. You must be sure this value is a V3f/V3d or you will have {0,0,0}.
- as_V3d() V3d
Returns the value as a V3d. You must be sure this value is a V3f/V3d or you will have {0,0,0}.
- as_V4f() V4f
Returns the value as a V4f. You must be sure this value is a V4f/V4d or you will have {0,0,0,0}.
- as_V4d() V4d
Returns the value as a V4d. You must be sure this value is a V4f/V4d or you will have {0,0,0,0}.
- as_V2i() V2i
Returns the value as a V2i. You must be sure this value is a V2i or you will have {0,0}.
- as_V3i() V3i
Returns the value as a V3i. You must be sure this value is a V3i or you will have {0,0,0}.
- as_V4i() V4i
Returns the value as a V4i. You must be sure this value is a V4i or you will have {0,0,0,0}.
- as_M44f() M44f
Returns the value as a M44f. You must be sure this value is a M44f or M44d or you will have an identity matrix.
- as_M44d() M44d
Returns the value as a M44d. You must be sure this value is a M44f or M44d or you will have an identity matrix.