Vector4.fromJson constructor

Vector4.fromJson(
  1. List<double>? json
)

Implementation

Vector4.fromJson(List<double>? json) {
  storage = Float32List(4);
  if (json != null) {
    x = json[0];
    y = json[1];
    z = json[2];
    w = json[3];
  }
}