str function

String str(
  1. List<double> a
)

Returns a string representation of a vector

@param {ReadonlyVec4} a vector to represent as a string @returns {String} string representation of the vector

Implementation

String str(List<double> a) {
  return """vec4("${a[0]}", "${a[1]}", "${a[2]}", "${a[3]}")""";
}