matrix static method
Returns a list of 16 doubles from the specified list.
If the list is missing or has fewer than 16 entries, returns null.
Otherwise, returns a list of 16 entries, corresponding to the first 16 entries of the specified list, with any non-double values replaced by 0.0.
Implementation
static List<double>? matrix(Matrix4? matrix) {
if (matrix == null) return null;
return matrix.storage;
}