@@ -1272,7 +1272,7 @@ final class NativeFloat32x4 implements Float32x4 {
1272
1272
_cx ? - 1 : 0 , _cy ? - 1 : 0 , _cz ? - 1 : 0 , _cw ? - 1 : 0 );
1273
1273
}
1274
1274
1275
- /// Returns a copy of [ this] each lane being scaled by [s] .
1275
+ /// Returns a copy of this [Float32x4 ] each lane being scaled by [s] .
1276
1276
Float32x4 scale (double s) {
1277
1277
double _x = s * x;
1278
1278
double _y = s * y;
@@ -1290,7 +1290,7 @@ final class NativeFloat32x4 implements Float32x4 {
1290
1290
return NativeFloat32x4 ._truncated (_x, _y, _z, _w);
1291
1291
}
1292
1292
1293
- /// Clamps [ this] to be in the range [lowerLimit] -[upperLimit] .
1293
+ /// Clamps this [Float32x4 ] to be in the range [lowerLimit] -[upperLimit] .
1294
1294
Float32x4 clamp (Float32x4 lowerLimit, Float32x4 upperLimit) {
1295
1295
double _lx = lowerLimit.x;
1296
1296
double _ly = lowerLimit.y;
@@ -1349,9 +1349,9 @@ final class NativeFloat32x4 implements Float32x4 {
1349
1349
return NativeFloat32x4 ._truncated (_x, _y, _z, _w);
1350
1350
}
1351
1351
1352
- /// Shuffle the lane values in [ this] and [other] . The returned
1353
- /// Float32x4 will have XY lanes from [ this] and ZW lanes from [other] .
1354
- /// Uses the same [mask] as [shuffle] .
1352
+ /// Shuffle the lane values in this [Float32x4 ] and [other] . The returned
1353
+ /// Float32x4 will have XY lanes from this [Float32x4 ] and ZW lanes from
1354
+ /// [other] . Uses the same [mask] as [shuffle] .
1355
1355
Float32x4 shuffleMix (Float32x4 other, int mask) {
1356
1356
if ((mask < 0 ) || (mask > 255 )) {
1357
1357
throw RangeError .range (mask, 0 , 255 , "mask" );
@@ -1372,31 +1372,31 @@ final class NativeFloat32x4 implements Float32x4 {
1372
1372
return NativeFloat32x4 ._truncated (_x, _y, _z, _w);
1373
1373
}
1374
1374
1375
- /// Copy [ this] and replace the [x] lane.
1375
+ /// Copy this [Float32x4 ] and replace the [x] lane.
1376
1376
Float32x4 withX (double newX) {
1377
1377
ArgumentError .checkNotNull (newX);
1378
1378
return NativeFloat32x4 ._truncated (_truncate (newX), y, z, w);
1379
1379
}
1380
1380
1381
- /// Copy [ this] and replace the [y] lane.
1381
+ /// Copy this [Float32x4 ] and replace the [y] lane.
1382
1382
Float32x4 withY (double newY) {
1383
1383
ArgumentError .checkNotNull (newY);
1384
1384
return NativeFloat32x4 ._truncated (x, _truncate (newY), z, w);
1385
1385
}
1386
1386
1387
- /// Copy [ this] and replace the [z] lane.
1387
+ /// Copy this [Float32x4 ] and replace the [z] lane.
1388
1388
Float32x4 withZ (double newZ) {
1389
1389
ArgumentError .checkNotNull (newZ);
1390
1390
return NativeFloat32x4 ._truncated (x, y, _truncate (newZ), w);
1391
1391
}
1392
1392
1393
- /// Copy [ this] and replace the [w] lane.
1393
+ /// Copy this [Float32x4 ] and replace the [w] lane.
1394
1394
Float32x4 withW (double newW) {
1395
1395
ArgumentError .checkNotNull (newW);
1396
1396
return NativeFloat32x4 ._truncated (x, y, z, _truncate (newW));
1397
1397
}
1398
1398
1399
- /// Returns the lane-wise minimum value in [ this] or [other] .
1399
+ /// Returns the lane-wise minimum value in this [Float32x4 ] or [other] .
1400
1400
Float32x4 min (Float32x4 other) {
1401
1401
double _x = x < other.x ? x : other.x;
1402
1402
double _y = y < other.y ? y : other.y;
@@ -1405,7 +1405,7 @@ final class NativeFloat32x4 implements Float32x4 {
1405
1405
return NativeFloat32x4 ._truncated (_x, _y, _z, _w);
1406
1406
}
1407
1407
1408
- /// Returns the lane-wise maximum value in [ this] or [other] .
1408
+ /// Returns the lane-wise maximum value in this [Float32x4 ] or [other] .
1409
1409
Float32x4 max (Float32x4 other) {
1410
1410
double _x = x > other.x ? x : other.x;
1411
1411
double _y = y > other.y ? y : other.y;
@@ -1414,7 +1414,7 @@ final class NativeFloat32x4 implements Float32x4 {
1414
1414
return NativeFloat32x4 ._truncated (_x, _y, _z, _w);
1415
1415
}
1416
1416
1417
- /// Returns the square root of [ this] .
1417
+ /// Returns the square root of this [Float32x4 ] .
1418
1418
Float32x4 sqrt () {
1419
1419
double _x = Math .sqrt (x);
1420
1420
double _y = Math .sqrt (y);
@@ -1423,7 +1423,7 @@ final class NativeFloat32x4 implements Float32x4 {
1423
1423
return NativeFloat32x4 ._doubles (_x, _y, _z, _w);
1424
1424
}
1425
1425
1426
- /// Returns the reciprocal of [ this] .
1426
+ /// Returns the reciprocal of this [Float32x4 ] .
1427
1427
Float32x4 reciprocal () {
1428
1428
double _x = 1.0 / x;
1429
1429
double _y = 1.0 / y;
@@ -1432,7 +1432,7 @@ final class NativeFloat32x4 implements Float32x4 {
1432
1432
return NativeFloat32x4 ._doubles (_x, _y, _z, _w);
1433
1433
}
1434
1434
1435
- /// Returns the square root of the reciprocal of [ this] .
1435
+ /// Returns the square root of the reciprocal of this [Float32x4 ] .
1436
1436
Float32x4 reciprocalSqrt () {
1437
1437
double _x = Math .sqrt (1.0 / x);
1438
1438
double _y = Math .sqrt (1.0 / y);
@@ -1577,8 +1577,8 @@ final class NativeInt32x4 implements Int32x4 {
1577
1577
return NativeInt32x4 ._truncated (_x, _y, _z, _w);
1578
1578
}
1579
1579
1580
- /// Shuffle the lane values in [ this] and [other] . The returned
1581
- /// Int32x4 will have XY lanes from [ this] and ZW lanes from [other] .
1580
+ /// Shuffle the lane values in this [Int32x4 ] and [other] . The returned
1581
+ /// Int32x4 will have XY lanes from this [Int32x4 ] and ZW lanes from [other] .
1582
1582
/// Uses the same [mask] as [shuffle] .
1583
1583
Int32x4 shuffleMix (Int32x4 other, int mask) {
1584
1584
if ((mask < 0 ) || (mask > 255 )) {
@@ -1600,28 +1600,28 @@ final class NativeInt32x4 implements Int32x4 {
1600
1600
return NativeInt32x4 ._truncated (_x, _y, _z, _w);
1601
1601
}
1602
1602
1603
- /// Returns a new [Int32x4] copied from [ this] with a new x value.
1603
+ /// Returns a new [Int32x4] copied from this [Int32x4 ] with a new x value.
1604
1604
Int32x4 withX (int x) {
1605
1605
ArgumentError .checkNotNull (x);
1606
1606
int _x = _truncate (x);
1607
1607
return NativeInt32x4 ._truncated (_x, y, z, w);
1608
1608
}
1609
1609
1610
- /// Returns a new [Int32x4] copied from [ this] with a new y value.
1610
+ /// Returns a new [Int32x4] copied from this [Int32x4 ] with a new y value.
1611
1611
Int32x4 withY (int y) {
1612
1612
ArgumentError .checkNotNull (y);
1613
1613
int _y = _truncate (y);
1614
1614
return NativeInt32x4 ._truncated (x, _y, z, w);
1615
1615
}
1616
1616
1617
- /// Returns a new [Int32x4] copied from [ this] with a new z value.
1617
+ /// Returns a new [Int32x4] copied from this [Int32x4 ] with a new z value.
1618
1618
Int32x4 withZ (int z) {
1619
1619
ArgumentError .checkNotNull (z);
1620
1620
int _z = _truncate (z);
1621
1621
return NativeInt32x4 ._truncated (x, y, _z, w);
1622
1622
}
1623
1623
1624
- /// Returns a new [Int32x4] copied from [ this] with a new w value.
1624
+ /// Returns a new [Int32x4] copied from this [Int32x4 ] with a new w value.
1625
1625
Int32x4 withW (int w) {
1626
1626
ArgumentError .checkNotNull (w);
1627
1627
int _w = _truncate (w);
@@ -1640,33 +1640,33 @@ final class NativeInt32x4 implements Int32x4 {
1640
1640
/// Extracted w value. Returns `false` for 0, `true` for any other value.
1641
1641
bool get flagW => w != 0 ;
1642
1642
1643
- /// Returns a new [Int32x4] copied from [ this] with a new x value.
1643
+ /// Returns a new [Int32x4] copied from this [Int32x4 ] with a new x value.
1644
1644
Int32x4 withFlagX (bool flagX) {
1645
1645
int _x = flagX ? - 1 : 0 ;
1646
1646
return NativeInt32x4 ._truncated (_x, y, z, w);
1647
1647
}
1648
1648
1649
- /// Returns a new [Int32x4] copied from [ this] with a new y value.
1649
+ /// Returns a new [Int32x4] copied from this [Int32x4 ] with a new y value.
1650
1650
Int32x4 withFlagY (bool flagY) {
1651
1651
int _y = flagY ? - 1 : 0 ;
1652
1652
return NativeInt32x4 ._truncated (x, _y, z, w);
1653
1653
}
1654
1654
1655
- /// Returns a new [Int32x4] copied from [ this] with a new z value.
1655
+ /// Returns a new [Int32x4] copied from this [Int32x4 ] with a new z value.
1656
1656
Int32x4 withFlagZ (bool flagZ) {
1657
1657
int _z = flagZ ? - 1 : 0 ;
1658
1658
return NativeInt32x4 ._truncated (x, y, _z, w);
1659
1659
}
1660
1660
1661
- /// Returns a new [Int32x4] copied from [ this] with a new w value.
1661
+ /// Returns a new [Int32x4] copied from this [Int32x4 ] with a new w value.
1662
1662
Int32x4 withFlagW (bool flagW) {
1663
1663
int _w = flagW ? - 1 : 0 ;
1664
1664
return NativeInt32x4 ._truncated (x, y, z, _w);
1665
1665
}
1666
1666
1667
- /// Merge [trueValue] and [falseValue] based on [ this] ' bit mask:
1668
- /// Select bit from [trueValue] when bit in [ this] is on.
1669
- /// Select bit from [falseValue] when bit in [ this] is off.
1667
+ /// Merge [trueValue] and [falseValue] based on this [Int32x4] bit mask:
1668
+ /// Select bit from [trueValue] when bit in this [Int32x4 ] is on.
1669
+ /// Select bit from [falseValue] when bit in this [Int32x4 ] is off.
1670
1670
Float32x4 select (Float32x4 trueValue, Float32x4 falseValue) {
1671
1671
var floatList = NativeFloat32x4 ._list;
1672
1672
var intView = NativeFloat32x4 ._uint32view;
@@ -1749,7 +1749,7 @@ final class NativeFloat64x2 implements Float64x2 {
1749
1749
return NativeFloat64x2 ._doubles (x / other.x, y / other.y);
1750
1750
}
1751
1751
1752
- /// Returns a copy of [ this] each lane being scaled by [s] .
1752
+ /// Returns a copy of this [Float64x2 ] each lane being scaled by [s] .
1753
1753
Float64x2 scale (double s) {
1754
1754
return NativeFloat64x2 ._doubles (x * s, y * s);
1755
1755
}
@@ -1759,7 +1759,7 @@ final class NativeFloat64x2 implements Float64x2 {
1759
1759
return NativeFloat64x2 ._doubles (x.abs (), y.abs ());
1760
1760
}
1761
1761
1762
- /// Clamps [ this] to be in the range [lowerLimit] -[upperLimit] .
1762
+ /// Clamps this [Float64x2 ] to be in the range [lowerLimit] -[upperLimit] .
1763
1763
Float64x2 clamp (Float64x2 lowerLimit, Float64x2 upperLimit) {
1764
1764
double _lx = lowerLimit.x;
1765
1765
double _ly = lowerLimit.y;
@@ -1785,31 +1785,33 @@ final class NativeFloat64x2 implements Float64x2 {
1785
1785
return mx | my << 1 ;
1786
1786
}
1787
1787
1788
- /// Returns a new [Float64x2] copied from [this] with a new x value.
1788
+ /// Returns a new [Float64x2] copied from this [Float64x2] with a new x
1789
+ /// value.
1789
1790
Float64x2 withX (double x) {
1790
1791
if (x is ! num ) throw ArgumentError (x);
1791
1792
return NativeFloat64x2 ._doubles (x, y);
1792
1793
}
1793
1794
1794
- /// Returns a new [Float64x2] copied from [this] with a new y value.
1795
+ /// Returns a new [Float64x2] copied from this [Float64x2] with a new y
1796
+ /// value.
1795
1797
Float64x2 withY (double y) {
1796
1798
if (y is ! num ) throw ArgumentError (y);
1797
1799
return NativeFloat64x2 ._doubles (x, y);
1798
1800
}
1799
1801
1800
- /// Returns the lane-wise minimum value in [ this] or [other] .
1802
+ /// Returns the lane-wise minimum value in this [Float64x2 ] or [other] .
1801
1803
Float64x2 min (Float64x2 other) {
1802
1804
return NativeFloat64x2 ._doubles (
1803
1805
x < other.x ? x : other.x, y < other.y ? y : other.y);
1804
1806
}
1805
1807
1806
- /// Returns the lane-wise maximum value in [ this] or [other] .
1808
+ /// Returns the lane-wise maximum value in this [Float64x2 ] or [other] .
1807
1809
Float64x2 max (Float64x2 other) {
1808
1810
return NativeFloat64x2 ._doubles (
1809
1811
x > other.x ? x : other.x, y > other.y ? y : other.y);
1810
1812
}
1811
1813
1812
- /// Returns the lane-wise square root of [ this] .
1814
+ /// Returns the lane-wise square root of this [Float64x2 ] .
1813
1815
Float64x2 sqrt () {
1814
1816
return NativeFloat64x2 ._doubles (Math .sqrt (x), Math .sqrt (y));
1815
1817
}
0 commit comments