Int32x4 and operations.

Int32x4 stores 4 32-bit bit-masks in "lanes". The lanes are "x", "y", "z", and "w" respectively.

Constants

WWWW → int

const 0xFF
WWWX → int

const 0x3F
WWWY → int

const 0x7F
WWWZ → int

const 0xBF
WWXW → int

const 0xCF
WWXX → int

const 0xF
WWXY → int

const 0x4F
WWXZ → int

const 0x8F
WWYW → int

const 0xDF
WWYX → int

const 0x1F
WWYY → int

const 0x5F
WWYZ → int

const 0x9F
WWZW → int

const 0xEF
WWZX → int

const 0x2F
WWZY → int

const 0x6F
WWZZ → int

const 0xAF
WXWW → int

const 0xF3
WXWX → int

const 0x33
WXWY → int

const 0x73
WXWZ → int

const 0xB3
WXXW → int

const 0xC3
WXXX → int

const 0x3
WXXY → int

const 0x43
WXXZ → int

const 0x83
WXYW → int

const 0xD3
WXYX → int

const 0x13
WXYY → int

const 0x53
WXYZ → int

const 0x93
WXZW → int

const 0xE3
WXZX → int

const 0x23
WXZY → int

const 0x63
WXZZ → int

const 0xA3
WYWW → int

const 0xF7
WYWX → int

const 0x37
WYWY → int

const 0x77
WYWZ → int

const 0xB7
WYXW → int

const 0xC7
WYXX → int

const 0x7
WYXY → int

const 0x47
WYXZ → int

const 0x87
WYYW → int

const 0xD7
WYYX → int

const 0x17
WYYY → int

const 0x57
WYYZ → int

const 0x97
WYZW → int

const 0xE7
WYZX → int

const 0x27
WYZY → int

const 0x67
WYZZ → int

const 0xA7
WZWW → int

const 0xFB
WZWX → int

const 0x3B
WZWY → int

const 0x7B
WZWZ → int

const 0xBB
WZXW → int

const 0xCB
WZXX → int

const 0xB
WZXY → int

const 0x4B
WZXZ → int

const 0x8B
WZYW → int

const 0xDB
WZYX → int

const 0x1B
WZYY → int

const 0x5B
WZYZ → int

const 0x9B
WZZW → int

const 0xEB
WZZX → int

const 0x2B
WZZY → int

const 0x6B
WZZZ → int

const 0xAB
XWWW → int

const 0xFC
XWWX → int

const 0x3C
XWWY → int

const 0x7C
XWWZ → int

const 0xBC
XWXW → int

const 0xCC
XWXX → int

const 0xC
XWXY → int

const 0x4C
XWXZ → int

const 0x8C
XWYW → int

const 0xDC
XWYX → int

const 0x1C
XWYY → int

const 0x5C
XWYZ → int

const 0x9C
XWZW → int

const 0xEC
XWZX → int

const 0x2C
XWZY → int

const 0x6C
XWZZ → int

const 0xAC
XXWW → int

const 0xF0
XXWX → int

const 0x30
XXWY → int

const 0x70
XXWZ → int

const 0xB0
XXXW → int

const 0xC0
XXXX → int

Mask passed to shuffle or shuffleMix.

const 0x0
XXXY → int

const 0x40
XXXZ → int

const 0x80
XXYW → int

const 0xD0
XXYX → int

const 0x10
XXYY → int

const 0x50
XXYZ → int

const 0x90
XXZW → int

const 0xE0
XXZX → int

const 0x20
XXZY → int

const 0x60
XXZZ → int

const 0xA0
XYWW → int

const 0xF4
XYWX → int

const 0x34
XYWY → int

const 0x74
XYWZ → int

const 0xB4
XYXW → int

const 0xC4
XYXX → int

const 0x4
XYXY → int

const 0x44
XYXZ → int

const 0x84
XYYW → int

const 0xD4
XYYX → int

const 0x14
XYYY → int

const 0x54
XYYZ → int

const 0x94
XYZW → int

const 0xE4
XYZX → int

const 0x24
XYZY → int

const 0x64
XYZZ → int

const 0xA4
XZWW → int

const 0xF8
XZWX → int

const 0x38
XZWY → int

const 0x78
XZWZ → int

const 0xB8
XZXW → int

const 0xC8
XZXX → int

const 0x8
XZXY → int

const 0x48
XZXZ → int

const 0x88
XZYW → int

const 0xD8
XZYX → int

const 0x18
XZYY → int

const 0x58
XZYZ → int

const 0x98
XZZW → int

const 0xE8
XZZX → int

const 0x28
XZZY → int

const 0x68
XZZZ → int

const 0xA8
YWWW → int

const 0xFD
YWWX → int

const 0x3D
YWWY → int

const 0x7D
YWWZ → int

const 0xBD
YWXW → int

const 0xCD
YWXX → int

const 0xD
YWXY → int

const 0x4D
YWXZ → int

const 0x8D
YWYW → int

const 0xDD
YWYX → int

const 0x1D
YWYY → int

const 0x5D
YWYZ → int

const 0x9D
YWZW → int

const 0xED
YWZX → int

const 0x2D
YWZY → int

const 0x6D
YWZZ → int

const 0xAD
YXWW → int

const 0xF1
YXWX → int

const 0x31
YXWY → int

const 0x71
YXWZ → int

const 0xB1
YXXW → int

const 0xC1
YXXX → int

const 0x1
YXXY → int

const 0x41
YXXZ → int

const 0x81
YXYW → int

const 0xD1
YXYX → int

const 0x11
YXYY → int

const 0x51
YXYZ → int

const 0x91
YXZW → int

const 0xE1
YXZX → int

const 0x21
YXZY → int

const 0x61
YXZZ → int

const 0xA1
YYWW → int

const 0xF5
YYWX → int

const 0x35
YYWY → int

const 0x75
YYWZ → int

const 0xB5
YYXW → int

const 0xC5
YYXX → int

const 0x5
YYXY → int

const 0x45
YYXZ → int

const 0x85
YYYW → int

const 0xD5
YYYX → int

const 0x15
YYYY → int

const 0x55
YYYZ → int

const 0x95
YYZW → int

const 0xE5
YYZX → int

const 0x25
YYZY → int

const 0x65
YYZZ → int

const 0xA5
YZWW → int

const 0xF9
YZWX → int

const 0x39
YZWY → int

const 0x79
YZWZ → int

const 0xB9
YZXW → int

const 0xC9
YZXX → int

const 0x9
YZXY → int

const 0x49
YZXZ → int

const 0x89
YZYW → int

const 0xD9
YZYX → int

const 0x19
YZYY → int

const 0x59
YZYZ → int

const 0x99
YZZW → int

const 0xE9
YZZX → int

const 0x29
YZZY → int

const 0x69
YZZZ → int

const 0xA9
ZWWW → int

const 0xFE
ZWWX → int

const 0x3E
ZWWY → int

const 0x7E
ZWWZ → int

const 0xBE
ZWXW → int

const 0xCE
ZWXX → int

const 0xE
ZWXY → int

const 0x4E
ZWXZ → int

const 0x8E
ZWYW → int

const 0xDE
ZWYX → int

const 0x1E
ZWYY → int

const 0x5E
ZWYZ → int

const 0x9E
ZWZW → int

const 0xEE
ZWZX → int

const 0x2E
ZWZY → int

const 0x6E
ZWZZ → int

const 0xAE
ZXWW → int

const 0xF2
ZXWX → int

const 0x32
ZXWY → int

const 0x72
ZXWZ → int

const 0xB2
ZXXW → int

const 0xC2
ZXXX → int

const 0x2
ZXXY → int

const 0x42
ZXXZ → int

const 0x82
ZXYW → int

const 0xD2
ZXYX → int

const 0x12
ZXYY → int

const 0x52
ZXYZ → int

const 0x92
ZXZW → int

const 0xE2
ZXZX → int

const 0x22
ZXZY → int

const 0x62
ZXZZ → int

const 0xA2
ZYWW → int

const 0xF6
ZYWX → int

const 0x36
ZYWY → int

const 0x76
ZYWZ → int

const 0xB6
ZYXW → int

const 0xC6
ZYXX → int

const 0x6
ZYXY → int

const 0x46
ZYXZ → int

const 0x86
ZYYW → int

const 0xD6
ZYYX → int

const 0x16
ZYYY → int

const 0x56
ZYYZ → int

const 0x96
ZYZW → int

const 0xE6
ZYZX → int

const 0x26
ZYZY → int

const 0x66
ZYZZ → int

const 0xA6
ZZWW → int

const 0xFA
ZZWX → int

const 0x3A
ZZWY → int

const 0x7A
ZZWZ → int

const 0xBA
ZZXW → int

const 0xCA
ZZXX → int

const 0xA
ZZXY → int

const 0x4A
ZZXZ → int

const 0x8A
ZZYW → int

const 0xDA
ZZYX → int

const 0x1A
ZZYY → int

const 0x5A
ZZYZ → int

const 0x9A
ZZZW → int

const 0xEA
ZZZX → int

const 0x2A
ZZZY → int

const 0x6A
ZZZZ → int

const 0xAA

Constructors

Int32x4(int x, int y, int z, int w)

factory
Int32x4.bool(bool x, bool y, bool z, bool w)

factory
Int32x4.fromFloat32x4Bits(Float32x4 x)

factory

Properties

flagW → bool

Extracted w value. Returns false for 0, true for any other value.

read-only
flagX → bool

Extracted x value. Returns false for 0, true for any other value.

read-only
flagY → bool

Extracted y value. Returns false for 0, true for any other value.

read-only
flagZ → bool

Extracted z value. Returns false for 0, true for any other value.

read-only
hashCode → int

Get a 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 top bit 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 → int

Extract 32-bit mask from w lane.

read-only
x → int

Extract 32-bit mask from x lane.

read-only
y → int

Extract 32-bit mask from y lane.

read-only
z → int

Extract 32-bit mask from z lane.

read-only

Operators

operator &(Int32x4 other) → Int32x4

The bit-wise and operator.

operator +(Int32x4 other) → Int32x4

Addition operator.

operator -(Int32x4 other) → Int32x4

Subtraction operator.

operator ==(other) → bool

The equality operator.…

inherited
operator ^(Int32x4 other) → Int32x4

The bit-wise xor operator.

operator |(Int32x4 other) → Int32x4

The bit-wise or operator.

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.…

inherited
select(Float32x4 trueValue, Float32x4 falseValue) → Float32x4

Merge trueValue and falseValue based on this' bit mask: Select bit from trueValue when bit in this is on. Select bit from falseValue when bit in this is off.

shuffle(int mask) → Int32x4

Shuffle the lane values. mask must be one of the 256 shuffle constants.

shuffleMix(Int32x4 other, int mask) → Int32x4

Shuffle the lane values in this and other. The returned Int32x4 will have XY lanes from this and ZW lanes from other. Uses the same mask as shuffle.

toString() → String

Returns a string representation of this object.

inherited
withFlagW(bool w) → Int32x4

Returns a new Int32x4 copied from this with a new w value.

withFlagX(bool x) → Int32x4

Returns a new Int32x4 copied from this with a new x value.

withFlagY(bool y) → Int32x4

Returns a new Int32x4 copied from this with a new y value.

withFlagZ(bool z) → Int32x4

Returns a new Int32x4 copied from this with a new z value.

withW(int w) → Int32x4

Returns a new Int32x4 copied from this with a new w value.

withX(int x) → Int32x4

Returns a new Int32x4 copied from this with a new x value.

withY(int y) → Int32x4

Returns a new Int32x4 copied from this with a new y value.

withZ(int z) → Int32x4

Returns a new Int32x4 copied from this with a new z value.