Strong mode and linter clean-up for vector4
diff --git a/lib/src/vector_math/vector4.dart b/lib/src/vector_math/vector4.dart
index 72a2496..7117310 100644
--- a/lib/src/vector_math/vector4.dart
+++ b/lib/src/vector_math/vector4.dart
@@ -10,30 +10,34 @@
/// Set the values of [result] to the minimum of [a] and [b] for each line.
static void min(Vector4 a, Vector4 b, Vector4 result) {
- result.x = Math.min(a.x, b.x);
- result.y = Math.min(a.y, b.y);
- result.z = Math.min(a.z, b.z);
- result.w = Math.min(a.w, b.w);
+ result
+ ..x = Math.min(a.x, b.x)
+ ..y = Math.min(a.y, b.y)
+ ..z = Math.min(a.z, b.z)
+ ..w = Math.min(a.w, b.w);
}
/// Set the values of [result] to the maximum of [a] and [b] for each line.
static void max(Vector4 a, Vector4 b, Vector4 result) {
- result.x = Math.max(a.x, b.x);
- result.y = Math.max(a.y, b.y);
- result.z = Math.max(a.z, b.z);
- result.w = Math.max(a.w, b.w);
+ result
+ ..x = Math.max(a.x, b.x)
+ ..y = Math.max(a.y, b.y)
+ ..z = Math.max(a.z, b.z)
+ ..w = Math.max(a.w, b.w);
}
/// Interpolate between [min] and [max] with the amount of [a] using a linear
/// interpolation and store the values in [result].
static void mix(Vector4 min, Vector4 max, double a, Vector4 result) {
- result.x = min.x + a * (max.x - min.x);
- result.y = min.y + a * (max.y - min.y);
- result.z = min.z + a * (max.z - min.z);
- result.w = min.w + a * (max.w - min.w);
+ result
+ ..x = min.x + a * (max.x - min.x)
+ ..y = min.y + a * (max.y - min.y)
+ ..z = min.z + a * (max.z - min.z)
+ ..w = min.w + a * (max.w - min.w);
}
/// The components of the vector.
+ @override
Float32List get storage => _v4storage;
/// Construct a new vector with the specified values.
@@ -69,7 +73,7 @@
factory Vector4.random([Math.Random rng]) {
rng = rng == null ? new Math.Random() : rng;
return new Vector4(
- rng.nextDouble(), rng.nextDouble(), rng.nextDouble(), rng.nextDouble());
+ rng.nextDouble(), rng.nextDouble(), rng.nextDouble(), rng.nextDouble());
}
/// Set the values of the vector.
@@ -98,7 +102,7 @@
/// Set the values by copying them from [other].
void setFrom(Vector4 other) {
- final otherStorage = other._v4storage;
+ final Float32List otherStorage = other._v4storage;
_v4storage[3] = otherStorage[3];
_v4storage[2] = otherStorage[2];
_v4storage[1] = otherStorage[1];
@@ -114,18 +118,20 @@
}
/// Returns a printable string
+ @override
String toString() => '${_v4storage[0]},${_v4storage[1]},'
'${_v4storage[2]},${_v4storage[3]}';
/// Check if two vectors are the same.
- bool operator ==(other) {
- return (other is Vector4) &&
- (_v4storage[0] == other._v4storage[0]) &&
- (_v4storage[1] == other._v4storage[1]) &&
- (_v4storage[2] == other._v4storage[2]) &&
- (_v4storage[3] == other._v4storage[3]);
- }
+ @override
+ bool operator ==(Object other) =>
+ (other is Vector4) &&
+ (_v4storage[0] == other._v4storage[0]) &&
+ (_v4storage[1] == other._v4storage[1]) &&
+ (_v4storage[2] == other._v4storage[2]) &&
+ (_v4storage[3] == other._v4storage[3]);
+ @override
int get hashCode => quiver.hashObjects(_v4storage);
/// Negate.
@@ -184,11 +190,11 @@
/// Normalizes [this].
double normalize() {
- double l = length;
+ final double l = length;
if (l == 0.0) {
return 0.0;
}
- var d = 1.0 / l;
+ final double d = 1.0 / l;
_v4storage[0] *= d;
_v4storage[1] *= d;
_v4storage[2] *= d;
@@ -217,18 +223,18 @@
/// Squared distance from [this] to [arg]
double distanceToSquared(Vector4 arg) {
- final argStorage = arg._v4storage;
- final dx = _v4storage[0] - argStorage[0];
- final dy = _v4storage[1] - argStorage[1];
- final dz = _v4storage[2] - argStorage[2];
- final dw = _v4storage[3] - argStorage[3];
+ final Float32List argStorage = arg._v4storage;
+ final double dx = _v4storage[0] - argStorage[0];
+ final double dy = _v4storage[1] - argStorage[1];
+ final double dz = _v4storage[2] - argStorage[2];
+ final double dw = _v4storage[3] - argStorage[3];
return dx * dx + dy * dy + dz * dz + dw * dw;
}
/// Inner product.
double dot(Vector4 other) {
- final otherStorage = other._v4storage;
+ final Float32List otherStorage = other._v4storage;
double sum;
sum = _v4storage[0] * otherStorage[0];
sum += _v4storage[1] * otherStorage[1];
@@ -239,11 +245,11 @@
/// Multiplies [this] by [arg].
void applyMatrix4(Matrix4 arg) {
- var v1 = _v4storage[0];
- var v2 = _v4storage[1];
- var v3 = _v4storage[2];
- var v4 = _v4storage[3];
- final argStorage = arg.storage;
+ final double v1 = _v4storage[0];
+ final double v2 = _v4storage[1];
+ final double v3 = _v4storage[2];
+ final double v4 = _v4storage[3];
+ final Float32List argStorage = arg.storage;
_v4storage[0] = argStorage[0] * v1 +
argStorage[4] * v2 +
argStorage[8] * v3 +
@@ -264,15 +270,13 @@
/// Relative error between [this] and [correct]
double relativeError(Vector4 correct) {
- double correct_norm = correct.length;
- double diff_norm = (this - correct).length;
+ final double correct_norm = correct.length;
+ final double diff_norm = (this - correct).length;
return diff_norm / correct_norm;
}
/// Absolute error between [this] and [correct]
- double absoluteError(Vector4 correct) {
- return (this - correct).length;
- }
+ double absoluteError(Vector4 correct) => (this - correct).length;
/// True if any component is infinite.
bool get isInfinite {
@@ -295,7 +299,7 @@
}
void add(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[0] = _v4storage[0] + argStorage[0];
_v4storage[1] = _v4storage[1] + argStorage[1];
_v4storage[2] = _v4storage[2] + argStorage[2];
@@ -304,7 +308,7 @@
/// Add [arg] scaled by [factor] to [this].
void addScaled(Vector4 arg, double factor) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[0] = _v4storage[0] + argStorage[0] * factor;
_v4storage[1] = _v4storage[1] + argStorage[1] * factor;
_v4storage[2] = _v4storage[2] + argStorage[2] * factor;
@@ -313,7 +317,7 @@
/// Subtract [arg] from [this].
void sub(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[0] = _v4storage[0] - argStorage[0];
_v4storage[1] = _v4storage[1] - argStorage[1];
_v4storage[2] = _v4storage[2] - argStorage[2];
@@ -322,7 +326,7 @@
/// Multiply [this] by [arg].
void multiply(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[0] = _v4storage[0] * argStorage[0];
_v4storage[1] = _v4storage[1] * argStorage[1];
_v4storage[2] = _v4storage[2] * argStorage[2];
@@ -331,7 +335,7 @@
/// Divide [this] by [arg].
void div(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[0] = _v4storage[0] / argStorage[0];
_v4storage[1] = _v4storage[1] / argStorage[1];
_v4storage[2] = _v4storage[2] / argStorage[2];
@@ -367,20 +371,24 @@
/// Clamp each entry n in [this] in the range [min[n]]-[max[n]].
void clamp(Vector4 min, Vector4 max) {
- final minStorage = min.storage;
- final maxStorage = max.storage;
- _v4storage[0] = _v4storage[0].clamp(minStorage[0], maxStorage[0]);
- _v4storage[1] = _v4storage[1].clamp(minStorage[1], maxStorage[1]);
- _v4storage[2] = _v4storage[2].clamp(minStorage[2], maxStorage[2]);
- _v4storage[3] = _v4storage[3].clamp(minStorage[3], maxStorage[3]);
+ final Float32List minStorage = min.storage;
+ final Float32List maxStorage = max.storage;
+ _v4storage[0] =
+ _v4storage[0].clamp(minStorage[0], maxStorage[0]).toDouble();
+ _v4storage[1] =
+ _v4storage[1].clamp(minStorage[1], maxStorage[1]).toDouble();
+ _v4storage[2] =
+ _v4storage[2].clamp(minStorage[2], maxStorage[2]).toDouble();
+ _v4storage[3] =
+ _v4storage[3].clamp(minStorage[3], maxStorage[3]).toDouble();
}
/// Clamp entries in [this] in the range [min]-[max].
void clampScalar(double min, double max) {
- _v4storage[0] = _v4storage[0].clamp(min, max);
- _v4storage[1] = _v4storage[1].clamp(min, max);
- _v4storage[2] = _v4storage[2].clamp(min, max);
- _v4storage[3] = _v4storage[3].clamp(min, max);
+ _v4storage[0] = _v4storage[0].clamp(min, max).toDouble();
+ _v4storage[1] = _v4storage[1].clamp(min, max).toDouble();
+ _v4storage[2] = _v4storage[2].clamp(min, max).toDouble();
+ _v4storage[3] = _v4storage[3].clamp(min, max).toDouble();
}
/// Floor entries in [this].
@@ -428,7 +436,7 @@
/// Copy [this]
Vector4 copyInto(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
argStorage[0] = _v4storage[0];
argStorage[1] = _v4storage[1];
argStorage[2] = _v4storage[2];
@@ -453,247 +461,247 @@
}
set xy(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[0] = argStorage[0];
_v4storage[1] = argStorage[1];
}
set xz(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[0] = argStorage[0];
_v4storage[2] = argStorage[1];
}
set xw(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[0] = argStorage[0];
_v4storage[3] = argStorage[1];
}
set yx(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[1] = argStorage[0];
_v4storage[0] = argStorage[1];
}
set yz(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[1] = argStorage[0];
_v4storage[2] = argStorage[1];
}
set yw(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[1] = argStorage[0];
_v4storage[3] = argStorage[1];
}
set zx(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[2] = argStorage[0];
_v4storage[0] = argStorage[1];
}
set zy(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[2] = argStorage[0];
_v4storage[1] = argStorage[1];
}
set zw(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[2] = argStorage[0];
_v4storage[3] = argStorage[1];
}
set wx(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[3] = argStorage[0];
_v4storage[0] = argStorage[1];
}
set wy(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[3] = argStorage[0];
_v4storage[1] = argStorage[1];
}
set wz(Vector2 arg) {
- final argStorage = arg._v2storage;
+ final Float32List argStorage = arg._v2storage;
_v4storage[3] = argStorage[0];
_v4storage[2] = argStorage[1];
}
set xyz(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[0] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[2] = argStorage[2];
}
set xyw(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[0] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[3] = argStorage[2];
}
set xzy(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[0] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[1] = argStorage[2];
}
set xzw(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[0] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[3] = argStorage[2];
}
set xwy(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[0] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[1] = argStorage[2];
}
set xwz(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[0] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[2] = argStorage[2];
}
set yxz(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[1] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[2] = argStorage[2];
}
set yxw(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[1] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[3] = argStorage[2];
}
set yzx(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[1] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[0] = argStorage[2];
}
set yzw(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[1] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[3] = argStorage[2];
}
set ywx(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[1] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[0] = argStorage[2];
}
set ywz(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[1] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[2] = argStorage[2];
}
set zxy(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[2] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[1] = argStorage[2];
}
set zxw(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[2] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[3] = argStorage[2];
}
set zyx(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[2] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[0] = argStorage[2];
}
set zyw(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[2] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[3] = argStorage[2];
}
set zwx(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[2] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[0] = argStorage[2];
}
set zwy(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[2] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[1] = argStorage[2];
}
set wxy(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[3] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[1] = argStorage[2];
}
set wxz(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[3] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[2] = argStorage[2];
}
set wyx(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[3] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[0] = argStorage[2];
}
set wyz(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[3] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[2] = argStorage[2];
}
set wzx(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[3] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[0] = argStorage[2];
}
set wzy(Vector3 arg) {
- final argStorage = arg._v3storage;
+ final Float32List argStorage = arg._v3storage;
_v4storage[3] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[1] = argStorage[2];
}
set xyzw(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[0] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[2] = argStorage[2];
@@ -701,7 +709,7 @@
}
set xywz(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[0] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[3] = argStorage[2];
@@ -709,7 +717,7 @@
}
set xzyw(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[0] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[1] = argStorage[2];
@@ -717,7 +725,7 @@
}
set xzwy(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[0] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[3] = argStorage[2];
@@ -725,7 +733,7 @@
}
set xwyz(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[0] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[1] = argStorage[2];
@@ -733,7 +741,7 @@
}
set xwzy(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[0] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[2] = argStorage[2];
@@ -741,7 +749,7 @@
}
set yxzw(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[1] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[2] = argStorage[2];
@@ -749,7 +757,7 @@
}
set yxwz(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[1] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[3] = argStorage[2];
@@ -757,7 +765,7 @@
}
set yzxw(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[1] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[0] = argStorage[2];
@@ -765,7 +773,7 @@
}
set yzwx(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[1] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[3] = argStorage[2];
@@ -773,7 +781,7 @@
}
set ywxz(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[1] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[0] = argStorage[2];
@@ -781,7 +789,7 @@
}
set ywzx(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[1] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[2] = argStorage[2];
@@ -789,7 +797,7 @@
}
set zxyw(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[2] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[1] = argStorage[2];
@@ -797,7 +805,7 @@
}
set zxwy(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[2] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[3] = argStorage[2];
@@ -805,7 +813,7 @@
}
set zyxw(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[2] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[0] = argStorage[2];
@@ -813,7 +821,7 @@
}
set zywx(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[2] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[3] = argStorage[2];
@@ -821,7 +829,7 @@
}
set zwxy(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[2] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[0] = argStorage[2];
@@ -829,7 +837,7 @@
}
set zwyx(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[2] = argStorage[0];
_v4storage[3] = argStorage[1];
_v4storage[1] = argStorage[2];
@@ -837,7 +845,7 @@
}
set wxyz(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[3] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[1] = argStorage[2];
@@ -845,7 +853,7 @@
}
set wxzy(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[3] = argStorage[0];
_v4storage[0] = argStorage[1];
_v4storage[2] = argStorage[2];
@@ -853,7 +861,7 @@
}
set wyxz(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[3] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[0] = argStorage[2];
@@ -861,7 +869,7 @@
}
set wyzx(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[3] = argStorage[0];
_v4storage[1] = argStorage[1];
_v4storage[2] = argStorage[2];
@@ -869,7 +877,7 @@
}
set wzxy(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[3] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[0] = argStorage[2];
@@ -877,7 +885,7 @@
}
set wzyx(Vector4 arg) {
- final argStorage = arg._v4storage;
+ final Float32List argStorage = arg._v4storage;
_v4storage[3] = argStorage[0];
_v4storage[2] = argStorage[1];
_v4storage[1] = argStorage[2];