Float32x4 class Null safety

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.

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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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.
read-only
w double
Extracted w value.
read-only
x double
Extracted x value.
read-only
y double
Extracted y value.
read-only
z double
Extracted z value.
read-only

Methods

abs() Float32x4
Returns the lane-wise absolute value of this Float32x4.
clamp(Float32x4 lowerLimit, Float32x4 upperLimit) Float32x4
Lane-wise clamp this 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
Returns the lane-wise maximum value in this or other.
min(Float32x4 other) Float32x4
Returns the lane-wise minimum value in this or other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notEqual(Float32x4 other) Int32x4
Relational not-equal.
reciprocal() Float32x4
Returns the reciprocal of this.
reciprocalSqrt() Float32x4
Returns the square root of the reciprocal of this.
scale(double s) Float32x4
Returns a copy of this 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 and other. The returned Float32x4 will have XY lanes from this and ZW lanes from other. Uses the same mask as shuffle.
sqrt() Float32x4
Returns the square root of this.
toString() String
A string representation of this object. [...]
inherited
withW(double w) Float32x4
Returns a new Float32x4 copied from this with a new w value.
withX(double x) Float32x4
Returns a new Float32x4 copied from this with a new x value.
withY(double y) Float32x4
Returns a new Float32x4 copied from this with a new y value.
withZ(double z) Float32x4
Returns a new Float32x4 copied from this 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
255
wwwx → const int
63
wwwy → const int
127
wwwz → const int
191
wwxw → const int
207
wwxx → const int
15
wwxy → const int
79
wwxz → const int
143
wwyw → const int
223
wwyx → const int
31
wwyy → const int
95
wwyz → const int
159
wwzw → const int
239
wwzx → const int
47
wwzy → const int
111
wwzz → const int
175
wxww → const int
243
wxwx → const int
51
wxwy → const int
115
wxwz → const int
179
wxxw → const int
195
wxxx → const int
3
wxxy → const int
67
wxxz → const int
131
wxyw → const int
211
wxyx → const int
19
wxyy → const int
83
wxyz → const int
147
wxzw → const int
227
wxzx → const int
35
wxzy → const int
99
wxzz → const int
163
wyww → const int
247
wywx → const int
55
wywy → const int
119
wywz → const int
183
wyxw → const int
199
wyxx → const int
7
wyxy → const int
71
wyxz → const int
135
wyyw → const int
215
wyyx → const int
23
wyyy → const int
87
wyyz → const int
151
wyzw → const int
231
wyzx → const int
39
wyzy → const int
103
wyzz → const int
167
wzww → const int
251
wzwx → const int
59
wzwy → const int
123
wzwz → const int
187
wzxw → const int
203
wzxx → const int
11
wzxy → const int
75
wzxz → const int
139
wzyw → const int
219
wzyx → const int
27
wzyy → const int
91
wzyz → const int
155
wzzw → const int
235
wzzx → const int
43
wzzy → const int
107
wzzz → const int
171
xwww → const int
252
xwwx → const int
60
xwwy → const int
124
xwwz → const int
188
xwxw → const int
204
xwxx → const int
12
xwxy → const int
76
xwxz → const int
140
xwyw → const int
220
xwyx → const int
28
xwyy → const int
92
xwyz → const int
156
xwzw → const int
236
xwzx → const int
44
xwzy → const int
108
xwzz → const int
172
xxww → const int
240
xxwx → const int
48
xxwy → const int
112
xxwz → const int
176
xxxw → const int
192
xxxx → const int
Mask passed to shuffle or shuffleMix.
0
xxxy → const int
64
xxxz → const int
128
xxyw → const int
208
xxyx → const int
16
xxyy → const int
80
xxyz → const int
144
xxzw → const int
224
xxzx → const int
32
xxzy → const int
96
xxzz → const int
160
xyww → const int
244
xywx → const int
52
xywy → const int
116
xywz → const int
180
xyxw → const int
196
xyxx → const int
4
xyxy → const int
68
xyxz → const int
132
xyyw → const int
212
xyyx → const int
20
xyyy → const int
84
xyyz → const int
148
xyzw → const int
228
xyzx → const int
36
xyzy → const int
100
xyzz → const int
164
xzww → const int
248
xzwx → const int
56
xzwy → const int
120
xzwz → const int
184
xzxw → const int
200
xzxx → const int
8
xzxy → const int
72
xzxz → const int
136
xzyw → const int
216
xzyx → const int
24
xzyy → const int
88
xzyz → const int
152
xzzw → const int
232
xzzx → const int
40
xzzy → const int
104
xzzz → const int
168
ywww → const int
253
ywwx → const int
61
ywwy → const int
125
ywwz → const int
189
ywxw → const int
205
ywxx → const int
13
ywxy → const int
77
ywxz → const int
141
ywyw → const int
221
ywyx → const int
29
ywyy → const int
93
ywyz → const int
157
ywzw → const int
237
ywzx → const int
45
ywzy → const int
109
ywzz → const int
173
yxww → const int
241
yxwx → const int
49
yxwy → const int
113
yxwz → const int
177
yxxw → const int
193
yxxx → const int
1
yxxy → const int
65
yxxz → const int
129
yxyw → const int
209
yxyx → const int
17
yxyy → const int
81
yxyz → const int
145
yxzw → const int
225
yxzx → const int
33
yxzy → const int
97
yxzz → const int
161
yyww → const int
245
yywx → const int
53
yywy → const int
117
yywz → const int
181
yyxw → const int
197
yyxx → const int
5
yyxy → const int
69
yyxz → const int
133
yyyw → const int
213
yyyx → const int
21
yyyy → const int
85
yyyz → const int
149
yyzw → const int
229
yyzx → const int
37
yyzy → const int
101
yyzz → const int
165
yzww → const int
249
yzwx → const int
57
yzwy → const int
121
yzwz → const int
185
yzxw → const int
201
yzxx → const int
9
yzxy → const int
73
yzxz → const int
137
yzyw → const int
217
yzyx → const int
25
yzyy → const int
89
yzyz → const int
153
yzzw → const int
233
yzzx → const int
41
yzzy → const int
105
yzzz → const int
169
zwww → const int
254
zwwx → const int
62
zwwy → const int
126
zwwz → const int
190
zwxw → const int
206
zwxx → const int
14
zwxy → const int
78
zwxz → const int
142
zwyw → const int
222
zwyx → const int
30
zwyy → const int
94
zwyz → const int
158
zwzw → const int
238
zwzx → const int
46
zwzy → const int
110
zwzz → const int
174
zxww → const int
242
zxwx → const int
50
zxwy → const int
114
zxwz → const int
178
zxxw → const int
194
zxxx → const int
2
zxxy → const int
66
zxxz → const int
130
zxyw → const int
210
zxyx → const int
18
zxyy → const int
82
zxyz → const int
146
zxzw → const int
226
zxzx → const int
34
zxzy → const int
98
zxzz → const int
162
zyww → const int
246
zywx → const int
54
zywy → const int
118
zywz → const int
182
zyxw → const int
198
zyxx → const int
6
zyxy → const int
70
zyxz → const int
134
zyyw → const int
214
zyyx → const int
22
zyyy → const int
86
zyyz → const int
150
zyzw → const int
230
zyzx → const int
38
zyzy → const int
102
zyzz → const int
166
zzww → const int
250
zzwx → const int
58
zzwy → const int
122
zzwz → const int
186
zzxw → const int
202
zzxx → const int
10
zzxy → const int
74
zzxz → const int
138
zzyw → const int
218
zzyx → const int
26
zzyy → const int
90
zzyz → const int
154
zzzw → const int
234
zzzx → const int
42
zzzy → const int
106
zzzz → const int
170