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: str)

Create a string value

Value(v: V2f)

Create a V2f value

Value(v: V2d)

Create a V2d value

Value(v: V3f)

Create a V3f value

Value(v: V3d)

Create a V3d value

Value(v: V4f)

Create a V4f value

Value(v: V4d)

Create a V4d value

Value(v: v2i)

Create a V2i value

Value(v: v3i)

Create a V3i value

Value(v: V4i)

Create a V4i value

Value(v: M44f)

Create a M44f value

Value(v: M44d)

Create a M44d value

Value(v: Quatf)

Create a quaternion value

Value(v: Quatd)

Create a quaternion 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.

as_Quatf() Quatf

Returns the value as a Quatf. You must be sure this value is a Quatf or you will have an identity quaternion.

as_Quatd() Quatd

Returns the value as a Quatd. You must be sure this value is a Quatd or you will have an identity quaternion.