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.

Constants

WWWW → int

0xFF
WWWX → int

0x3F
WWWY → int

0x7F
WWWZ → int

0xBF
WWXW → int

0xCF
WWXX → int

0xF
WWXY → int

0x4F
WWXZ → int

0x8F
WWYW → int

0xDF
WWYX → int

0x1F
WWYY → int

0x5F
WWYZ → int

0x9F
WWZW → int

0xEF
WWZX → int

0x2F
WWZY → int

0x6F
WWZZ → int

0xAF
WXWW → int

0xF3
WXWX → int

0x33
WXWY → int

0x73
WXWZ → int

0xB3
WXXW → int

0xC3
WXXX → int

0x3
WXXY → int

0x43
WXXZ → int

0x83
WXYW → int

0xD3
WXYX → int

0x13
WXYY → int

0x53
WXYZ → int

0x93
WXZW → int

0xE3
WXZX → int

0x23
WXZY → int

0x63
WXZZ → int

0xA3
WYWW → int

0xF7
WYWX → int

0x37
WYWY → int

0x77
WYWZ → int

0xB7
WYXW → int

0xC7
WYXX → int

0x7
WYXY → int

0x47
WYXZ → int

0x87
WYYW → int

0xD7
WYYX → int

0x17
WYYY → int

0x57
WYYZ → int

0x97
WYZW → int

0xE7
WYZX → int

0x27
WYZY → int

0x67
WYZZ → int

0xA7
WZWW → int

0xFB
WZWX → int

0x3B
WZWY → int

0x7B
WZWZ → int

0xBB
WZXW → int

0xCB
WZXX → int

0xB
WZXY → int

0x4B
WZXZ → int

0x8B
WZYW → int

0xDB
WZYX → int

0x1B
WZYY → int

0x5B
WZYZ → int

0x9B
WZZW → int

0xEB
WZZX → int

0x2B
WZZY → int

0x6B
WZZZ → int

0xAB
XWWW → int

0xFC
XWWX → int

0x3C
XWWY → int

0x7C
XWWZ → int

0xBC
XWXW → int

0xCC
XWXX → int

0xC
XWXY → int

0x4C
XWXZ → int

0x8C
XWYW → int

0xDC
XWYX → int

0x1C
XWYY → int

0x5C
XWYZ → int

0x9C
XWZW → int

0xEC
XWZX → int

0x2C
XWZY → int

0x6C
XWZZ → int

0xAC
XXWW → int

0xF0
XXWX → int

0x30
XXWY → int

0x70
XXWZ → int

0xB0
XXXW → int

0xC0
XXXX → int

Mask passed to shuffle or shuffleMix.

0x0
XXXY → int

0x40
XXXZ → int

0x80
XXYW → int

0xD0
XXYX → int

0x10
XXYY → int

0x50
XXYZ → int

0x90
XXZW → int

0xE0
XXZX → int

0x20
XXZY → int

0x60
XXZZ → int

0xA0
XYWW → int

0xF4
XYWX → int

0x34
XYWY → int

0x74
XYWZ → int

0xB4
XYXW → int

0xC4
XYXX → int

0x4
XYXY → int

0x44
XYXZ → int

0x84
XYYW → int

0xD4
XYYX → int

0x14
XYYY → int

0x54
XYYZ → int

0x94
XYZW → int

0xE4
XYZX → int

0x24
XYZY → int

0x64
XYZZ → int

0xA4
XZWW → int

0xF8
XZWX → int

0x38
XZWY → int

0x78
XZWZ → int

0xB8
XZXW → int

0xC8
XZXX → int

0x8
XZXY → int

0x48
XZXZ → int

0x88
XZYW → int

0xD8
XZYX → int

0x18
XZYY → int

0x58
XZYZ → int

0x98
XZZW → int

0xE8
XZZX → int

0x28
XZZY → int

0x68
XZZZ → int

0xA8
YWWW → int

0xFD
YWWX → int

0x3D
YWWY → int

0x7D
YWWZ → int

0xBD
YWXW → int

0xCD
YWXX → int

0xD
YWXY → int

0x4D
YWXZ → int

0x8D
YWYW → int

0xDD
YWYX → int

0x1D
YWYY → int

0x5D
YWYZ → int

0x9D
YWZW → int

0xED
YWZX → int

0x2D
YWZY → int

0x6D
YWZZ → int

0xAD
YXWW → int

0xF1
YXWX → int

0x31
YXWY → int

0x71
YXWZ → int

0xB1
YXXW → int

0xC1
YXXX → int

0x1
YXXY → int

0x41
YXXZ → int

0x81
YXYW → int

0xD1
YXYX → int

0x11
YXYY → int

0x51
YXYZ → int

0x91
YXZW → int

0xE1
YXZX → int

0x21
YXZY → int

0x61
YXZZ → int

0xA1
YYWW → int

0xF5
YYWX → int

0x35
YYWY → int

0x75
YYWZ → int

0xB5
YYXW → int

0xC5
YYXX → int

0x5
YYXY → int

0x45
YYXZ → int

0x85
YYYW → int

0xD5
YYYX → int

0x15
YYYY → int

0x55
YYYZ → int

0x95
YYZW → int

0xE5
YYZX → int

0x25
YYZY → int

0x65
YYZZ → int

0xA5
YZWW → int

0xF9
YZWX → int

0x39
YZWY → int

0x79
YZWZ → int

0xB9
YZXW → int

0xC9
YZXX → int

0x9
YZXY → int

0x49
YZXZ → int

0x89
YZYW → int

0xD9
YZYX → int

0x19
YZYY → int

0x59
YZYZ → int

0x99
YZZW → int

0xE9
YZZX → int

0x29
YZZY → int

0x69
YZZZ → int

0xA9
ZWWW → int

0xFE
ZWWX → int

0x3E
ZWWY → int

0x7E
ZWWZ → int

0xBE
ZWXW → int

0xCE
ZWXX → int

0xE
ZWXY → int

0x4E
ZWXZ → int

0x8E
ZWYW → int

0xDE
ZWYX → int

0x1E
ZWYY → int

0x5E
ZWYZ → int

0x9E
ZWZW → int

0xEE
ZWZX → int

0x2E
ZWZY → int

0x6E
ZWZZ → int

0xAE
ZXWW → int

0xF2
ZXWX → int

0x32
ZXWY → int

0x72
ZXWZ → int

0xB2
ZXXW → int

0xC2
ZXXX → int

0x2
ZXXY → int

0x42
ZXXZ → int

0x82
ZXYW → int

0xD2
ZXYX → int

0x12
ZXYY → int

0x52
ZXYZ → int

0x92
ZXZW → int

0xE2
ZXZX → int

0x22
ZXZY → int

0x62
ZXZZ → int

0xA2
ZYWW → int

0xF6
ZYWX → int

0x36
ZYWY → int

0x76
ZYWZ → int

0xB6
ZYXW → int

0xC6
ZYXX → int

0x6
ZYXY → int

0x46
ZYXZ → int

0x86
ZYYW → int

0xD6
ZYYX → int

0x16
ZYYY → int

0x56
ZYYZ → int

0x96
ZYZW → int

0xE6
ZYZX → int

0x26
ZYZY → int

0x66
ZYZZ → int

0xA6
ZZWW → int

0xFA
ZZWX → int

0x3A
ZZWY → int

0x7A
ZZWZ → int

0xBA
ZZXW → int

0xCA
ZZXX → int

0xA
ZZXY → int

0x4A
ZZXZ → int

0x8A
ZZYW → int

0xDA
ZZYX → int

0x1A
ZZYY → int

0x5A
ZZYZ → int

0x9A
ZZZW → int

0xEA
ZZZX → int

0x2A
ZZZY → int

0x6A
ZZZZ → int

0xAA

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

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
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

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 unary-() → Float32x4

Negate operator.

operator ==(other) → bool

The equality operator.

inherited

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.

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.

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.

noSuchMethod(Invocation invocation) → dynamic

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

inherited
toString() → String

Returns a string representation of this object.

inherited