converters
Commonly used conversion functions.
list_to_vector4(float_list)
Convert a list of floats to a Vector4.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
float_list
|
list[float | int]
|
List of floats. |
required |
Returns:
Type | Description |
---|---|
Vector4
|
First four elements of the list as a Vector4 padded with zeros if necessary. |