Float32x4 immutable value type and operations.
Float32x4 stores 4 32-bit floating point values in "lanes". The lanes are "x", "y", "z", and "w" respectively.
It is a compile-time error for a class to attempt to extend or implement
Float32x4
.
Constructors
- Float32x4(double x, double y, double z, double w)
-
factory
- Float32x4.fromFloat64x2(Float64x2 v)
-
Sets the x and y lanes to their respective values in
v
and sets the z and w lanes to 0.0.factory - Float32x4.fromInt32x4Bits(Int32x4 x)
-
factory
- Float32x4.splat(double v)
-
factory
- Float32x4.zero()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signMask → int
-
Extract the sign bits from each lane return them in the first 4 bits.
"x" lane is bit 0.
"y" lane is bit 1.
"z" lane is bit 2.
"w" lane is bit 3.
no setter
- w → double
-
Extracted w value.
no setter
- x → double
-
Extracted x value.
no setter
- y → double
-
Extracted y value.
no setter
- z → double
-
Extracted z value.
no setter
Methods
-
abs(
) → Float32x4 - The lane-wise absolute value of this Float32x4.
-
clamp(
Float32x4 lowerLimit, Float32x4 upperLimit) → Float32x4 -
Lane-wise clamp this Float32x4 to be in the range
lowerLimit
-upperLimit
. -
equal(
Float32x4 other) → Int32x4 - Relational equal.
-
greaterThan(
Float32x4 other) → Int32x4 - Relational greater than.
-
greaterThanOrEqual(
Float32x4 other) → Int32x4 - Relational greater than or equal.
-
lessThan(
Float32x4 other) → Int32x4 - Relational less than.
-
lessThanOrEqual(
Float32x4 other) → Int32x4 - Relational less than or equal.
-
max(
Float32x4 other) → Float32x4 -
The lane-wise maximum value in this Float32x4 or
other
. -
min(
Float32x4 other) → Float32x4 -
The lane-wise minimum value in this Float32x4 or
other
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notEqual(
Float32x4 other) → Int32x4 - Relational not-equal.
-
reciprocal(
) → Float32x4 - The reciprocal of this Float32x4.
-
reciprocalSqrt(
) → Float32x4 - The square root of the reciprocal of this Float32x4.
-
scale(
double s) → Float32x4 -
Returns a copy of this Float32x4 each lane being scaled by
s
. Equivalent to this * new Float32x4.splat(s) -
shuffle(
int mask) → Float32x4 -
Shuffle the lane values.
mask
must be one of the 256 shuffle constants. -
shuffleMix(
Float32x4 other, int mask) → Float32x4 -
Shuffle the lane values in this Float32x4 and
other
. The returned Float32x4 will have XY lanes from this Float32x4 and ZW lanes fromother
. Uses the samemask
as shuffle. -
sqrt(
) → Float32x4 - The square root of this Float32x4.
-
toString(
) → String -
A string representation of this object.
inherited
-
withW(
double w) → Float32x4 - Returns a new Float32x4 copied from this Float32x4 with a new w value.
-
withX(
double x) → Float32x4 - Returns a new Float32x4 copied from this Float32x4 with a new x value.
-
withY(
double y) → Float32x4 - Returns a new Float32x4 copied from this Float32x4 with a new y value.
-
withZ(
double z) → Float32x4 - Returns a new Float32x4 copied from this Float32x4 with a new z value.
Operators
-
operator *(
Float32x4 other) → Float32x4 - Multiplication operator.
-
operator +(
Float32x4 other) → Float32x4 - Addition operator.
-
operator -(
Float32x4 other) → Float32x4 - Subtraction operator.
-
operator /(
Float32x4 other) → Float32x4 - Division operator.
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → Float32x4 - Negate operator.
Constants
- wwww → const int
- wwwx → const int
- wwwy → const int
- wwwz → const int
- wwxw → const int
- wwxx → const int
- wwxy → const int
- wwxz → const int
- wwyw → const int
- wwyx → const int
- wwyy → const int
- wwyz → const int
- wwzw → const int
- wwzx → const int
- wwzy → const int
- wwzz → const int
- wxww → const int
- wxwx → const int
- wxwy → const int
- wxwz → const int
- wxxw → const int
- wxxx → const int
- wxxy → const int
- wxxz → const int
- wxyw → const int
- wxyx → const int
- wxyy → const int
- wxyz → const int
- wxzw → const int
- wxzx → const int
- wxzy → const int
- wxzz → const int
- wyww → const int
- wywx → const int
- wywy → const int
- wywz → const int
- wyxw → const int
- wyxx → const int
- wyxy → const int
- wyxz → const int
- wyyw → const int
- wyyx → const int
- wyyy → const int
- wyyz → const int
- wyzw → const int
- wyzx → const int
- wyzy → const int
- wyzz → const int
- wzww → const int
- wzwx → const int
- wzwy → const int
- wzwz → const int
- wzxw → const int
- wzxx → const int
- wzxy → const int
- wzxz → const int
- wzyw → const int
- wzyx → const int
- wzyy → const int
- wzyz → const int
- wzzw → const int
- wzzx → const int
- wzzy → const int
- wzzz → const int
- xwww → const int
- xwwx → const int
- xwwy → const int
- xwwz → const int
- xwxw → const int
- xwxx → const int
- xwxy → const int
- xwxz → const int
- xwyw → const int
- xwyx → const int
- xwyy → const int
- xwyz → const int
- xwzw → const int
- xwzx → const int
- xwzy → const int
- xwzz → const int
- xxww → const int
- xxwx → const int
- xxwy → const int
- xxwz → const int
- xxxw → const int
- xxxx → const int
- Mask passed to shuffle or shuffleMix.
- xxxy → const int
- xxxz → const int
- xxyw → const int
- xxyx → const int
- xxyy → const int
- xxyz → const int
- xxzw → const int
- xxzx → const int
- xxzy → const int
- xxzz → const int
- xyww → const int
- xywx → const int
- xywy → const int
- xywz → const int
- xyxw → const int
- xyxx → const int
- xyxy → const int
- xyxz → const int
- xyyw → const int
- xyyx → const int
- xyyy → const int
- xyyz → const int
- xyzw → const int
- xyzx → const int
- xyzy → const int
- xyzz → const int
- xzww → const int
- xzwx → const int
- xzwy → const int
- xzwz → const int
- xzxw → const int
- xzxx → const int
- xzxy → const int
- xzxz → const int
- xzyw → const int
- xzyx → const int
- xzyy → const int
- xzyz → const int
- xzzw → const int
- xzzx → const int
- xzzy → const int
- xzzz → const int
- ywww → const int
- ywwx → const int
- ywwy → const int
- ywwz → const int
- ywxw → const int
- ywxx → const int
- ywxy → const int
- ywxz → const int
- ywyw → const int
- ywyx → const int
- ywyy → const int
- ywyz → const int
- ywzw → const int
- ywzx → const int
- ywzy → const int
- ywzz → const int
- yxww → const int
- yxwx → const int
- yxwy → const int
- yxwz → const int
- yxxw → const int
- yxxx → const int
- yxxy → const int
- yxxz → const int
- yxyw → const int
- yxyx → const int
- yxyy → const int
- yxyz → const int
- yxzw → const int
- yxzx → const int
- yxzy → const int
- yxzz → const int
- yyww → const int
- yywx → const int
- yywy → const int
- yywz → const int
- yyxw → const int
- yyxx → const int
- yyxy → const int
- yyxz → const int
- yyyw → const int
- yyyx → const int
- yyyy → const int
- yyyz → const int
- yyzw → const int
- yyzx → const int
- yyzy → const int
- yyzz → const int
- yzww → const int
- yzwx → const int
- yzwy → const int
- yzwz → const int
- yzxw → const int
- yzxx → const int
- yzxy → const int
- yzxz → const int
- yzyw → const int
- yzyx → const int
- yzyy → const int
- yzyz → const int
- yzzw → const int
- yzzx → const int
- yzzy → const int
- yzzz → const int
- zwww → const int
- zwwx → const int
- zwwy → const int
- zwwz → const int
- zwxw → const int
- zwxx → const int
- zwxy → const int
- zwxz → const int
- zwyw → const int
- zwyx → const int
- zwyy → const int
- zwyz → const int
- zwzw → const int
- zwzx → const int
- zwzy → const int
- zwzz → const int
- zxww → const int
- zxwx → const int
- zxwy → const int
- zxwz → const int
- zxxw → const int
- zxxx → const int
- zxxy → const int
- zxxz → const int
- zxyw → const int
- zxyx → const int
- zxyy → const int
- zxyz → const int
- zxzw → const int
- zxzx → const int
- zxzy → const int
- zxzz → const int
- zyww → const int
- zywx → const int
- zywy → const int
- zywz → const int
- zyxw → const int
- zyxx → const int
- zyxy → const int
- zyxz → const int
- zyyw → const int
- zyyx → const int
- zyyy → const int
- zyyz → const int
- zyzw → const int
- zyzx → const int
- zyzy → const int
- zyzz → const int
- zzww → const int
- zzwx → const int
- zzwy → const int
- zzwz → const int
- zzxw → const int
- zzxx → const int
- zzxy → const int
- zzxz → const int
- zzyw → const int
- zzyx → const int
- zzyy → const int
- zzyz → const int
- zzzw → const int
- zzzx → const int
- zzzy → const int
- zzzz → const int