Float32x4 abstract class

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

WWWWint
0xFF
WWWXint
0x3F
WWWYint
0x7F
WWWZint
0xBF
WWXWint
0xCF
WWXXint
0xF
WWXYint
0x4F
WWXZint
0x8F
WWYWint
0xDF
WWYXint
0x1F
WWYYint
0x5F
WWYZint
0x9F
WWZWint
0xEF
WWZXint
0x2F
WWZYint
0x6F
WWZZint
0xAF
WXWWint
0xF3
WXWXint
0x33
WXWYint
0x73
WXWZint
0xB3
WXXWint
0xC3
WXXXint
0x3
WXXYint
0x43
WXXZint
0x83
WXYWint
0xD3
WXYXint
0x13
WXYYint
0x53
WXYZint
0x93
WXZWint
0xE3
WXZXint
0x23
WXZYint
0x63
WXZZint
0xA3
WYWWint
0xF7
WYWXint
0x37
WYWYint
0x77
WYWZint
0xB7
WYXWint
0xC7
WYXXint
0x7
WYXYint
0x47
WYXZint
0x87
WYYWint
0xD7
WYYXint
0x17
WYYYint
0x57
WYYZint
0x97
WYZWint
0xE7
WYZXint
0x27
WYZYint
0x67
WYZZint
0xA7
WZWWint
0xFB
WZWXint
0x3B
WZWYint
0x7B
WZWZint
0xBB
WZXWint
0xCB
WZXXint
0xB
WZXYint
0x4B
WZXZint
0x8B
WZYWint
0xDB
WZYXint
0x1B
WZYYint
0x5B
WZYZint
0x9B
WZZWint
0xEB
WZZXint
0x2B
WZZYint
0x6B
WZZZint
0xAB
XWWWint
0xFC
XWWXint
0x3C
XWWYint
0x7C
XWWZint
0xBC
XWXWint
0xCC
XWXXint
0xC
XWXYint
0x4C
XWXZint
0x8C
XWYWint
0xDC
XWYXint
0x1C
XWYYint
0x5C
XWYZint
0x9C
XWZWint
0xEC
XWZXint
0x2C
XWZYint
0x6C
XWZZint
0xAC
XXWWint
0xF0
XXWXint
0x30
XXWYint
0x70
XXWZint
0xB0
XXXWint
0xC0
XXXXint

Mask passed to shuffle or shuffleMix.

0x0
XXXYint
0x40
XXXZint
0x80
XXYWint
0xD0
XXYXint
0x10
XXYYint
0x50
XXYZint
0x90
XXZWint
0xE0
XXZXint
0x20
XXZYint
0x60
XXZZint
0xA0
XYWWint
0xF4
XYWXint
0x34
XYWYint
0x74
XYWZint
0xB4
XYXWint
0xC4
XYXXint
0x4
XYXYint
0x44
XYXZint
0x84
XYYWint
0xD4
XYYXint
0x14
XYYYint
0x54
XYYZint
0x94
XYZWint
0xE4
XYZXint
0x24
XYZYint
0x64
XYZZint
0xA4
XZWWint
0xF8
XZWXint
0x38
XZWYint
0x78
XZWZint
0xB8
XZXWint
0xC8
XZXXint
0x8
XZXYint
0x48
XZXZint
0x88
XZYWint
0xD8
XZYXint
0x18
XZYYint
0x58
XZYZint
0x98
XZZWint
0xE8
XZZXint
0x28
XZZYint
0x68
XZZZint
0xA8
YWWWint
0xFD
YWWXint
0x3D
YWWYint
0x7D
YWWZint
0xBD
YWXWint
0xCD
YWXXint
0xD
YWXYint
0x4D
YWXZint
0x8D
YWYWint
0xDD
YWYXint
0x1D
YWYYint
0x5D
YWYZint
0x9D
YWZWint
0xED
YWZXint
0x2D
YWZYint
0x6D
YWZZint
0xAD
YXWWint
0xF1
YXWXint
0x31
YXWYint
0x71
YXWZint
0xB1
YXXWint
0xC1
YXXXint
0x1
YXXYint
0x41
YXXZint
0x81
YXYWint
0xD1
YXYXint
0x11
YXYYint
0x51
YXYZint
0x91
YXZWint
0xE1
YXZXint
0x21
YXZYint
0x61
YXZZint
0xA1
YYWWint
0xF5
YYWXint
0x35
YYWYint
0x75
YYWZint
0xB5
YYXWint
0xC5
YYXXint
0x5
YYXYint
0x45
YYXZint
0x85
YYYWint
0xD5
YYYXint
0x15
YYYYint
0x55
YYYZint
0x95
YYZWint
0xE5
YYZXint
0x25
YYZYint
0x65
YYZZint
0xA5
YZWWint
0xF9
YZWXint
0x39
YZWYint
0x79
YZWZint
0xB9
YZXWint
0xC9
YZXXint
0x9
YZXYint
0x49
YZXZint
0x89
YZYWint
0xD9
YZYXint
0x19
YZYYint
0x59
YZYZint
0x99
YZZWint
0xE9
YZZXint
0x29
YZZYint
0x69
YZZZint
0xA9
ZWWWint
0xFE
ZWWXint
0x3E
ZWWYint
0x7E
ZWWZint
0xBE
ZWXWint
0xCE
ZWXXint
0xE
ZWXYint
0x4E
ZWXZint
0x8E
ZWYWint
0xDE
ZWYXint
0x1E
ZWYYint
0x5E
ZWYZint
0x9E
ZWZWint
0xEE
ZWZXint
0x2E
ZWZYint
0x6E
ZWZZint
0xAE
ZXWWint
0xF2
ZXWXint
0x32
ZXWYint
0x72
ZXWZint
0xB2
ZXXWint
0xC2
ZXXXint
0x2
ZXXYint
0x42
ZXXZint
0x82
ZXYWint
0xD2
ZXYXint
0x12
ZXYYint
0x52
ZXYZint
0x92
ZXZWint
0xE2
ZXZXint
0x22
ZXZYint
0x62
ZXZZint
0xA2
ZYWWint
0xF6
ZYWXint
0x36
ZYWYint
0x76
ZYWZint
0xB6
ZYXWint
0xC6
ZYXXint
0x6
ZYXYint
0x46
ZYXZint
0x86
ZYYWint
0xD6
ZYYXint
0x16
ZYYYint
0x56
ZYYZint
0x96
ZYZWint
0xE6
ZYZXint
0x26
ZYZYint
0x66
ZYZZint
0xA6
ZZWWint
0xFA
ZZWXint
0x3A
ZZWYint
0x7A
ZZWZint
0xBA
ZZXWint
0xCA
ZZXXint
0xA
ZZXYint
0x4A
ZZXZint
0x8A
ZZYWint
0xDA
ZZYXint
0x1A
ZZYYint
0x5A
ZZYZint
0x9A
ZZZWint
0xEA
ZZZXint
0x2A
ZZZYint
0x6A
ZZZZint
0xAA

Constructors

Float32x4(double x, double y, double z, double w)
factory
Float32x4.fromFloat64x2(Float64x2 v)
factory

Sets the x and y lanes to their respective values in v and sets the z and w lanes to 0.0.

Float32x4.fromInt32x4Bits(Int32x4 x)
factory
Float32x4.splat(double v)
factory
Float32x4.zero()
factory

Properties

signMaskint
read-only

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.

wdouble
read-only

Extracted w value.

xdouble
read-only

Extracted x value.

ydouble
read-only

Extracted y value.

zdouble
read-only

Extracted z value.

hashCodeint
read-only, inherited

The hash code for this object.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

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
inherited

The equality operator.

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
inherited

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

toString() → String
inherited

Returns a string representation of this object.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-typed_data/Float32x4-class.html