Vector4 class Null safety

4D column vector.

Implemented types

Constructors

Vector4(double x, double y, double z, double w)
Construct a new vector with the specified values.
factory
Vector4.all(double value)
Splat value into all lanes of the vector.
factory
Vector4.array(List<double> array, [int offset = 0])
Initialized with values from array starting at offset.
factory
Vector4.copy(Vector4 other)
Copy of other.
factory
Vector4.fromBuffer(ByteBuffer buffer, int offset)
Constructs Vector4 with a storage that views given buffer starting at offset. offset has to be multiple of Float32List.bytesPerElement.
Vector4.fromFloat32List(Float32List _v4storage)
Constructs Vector4 with given Float32List as storage.
Vector4.identity()
Constructs the identity vector.
factory
Vector4.random([Random? rng])
Generate random vector in the range (0, 0, 0, 0) to (1, 1, 1, 1). You can optionally pass your own random number generator.
factory
Vector4.zero()
Zero vector.

Properties

a ↔ double
read / write
aa → Vector2
read-only
aaa → Vector3
read-only
aaaa → Vector4
read-only
aaab → Vector4
read-only
aaag → Vector4
read-only
aaar → Vector4
read-only
aab → Vector3
read-only
aaba → Vector4
read-only
aabb → Vector4
read-only
aabg → Vector4
read-only
aabr → Vector4
read-only
aag → Vector3
read-only
aaga → Vector4
read-only
aagb → Vector4
read-only
aagg → Vector4
read-only
aagr → Vector4
read-only
aar → Vector3
read-only
aara → Vector4
read-only
aarb → Vector4
read-only
aarg → Vector4
read-only
aarr → Vector4
read-only
ab ↔ Vector2
read / write
aba → Vector3
read-only
abaa → Vector4
read-only
abab → Vector4
read-only
abag → Vector4
read-only
abar → Vector4
read-only
abb → Vector3
read-only
abba → Vector4
read-only
abbb → Vector4
read-only
abbg → Vector4
read-only
abbr → Vector4
read-only
abg ↔ Vector3
read / write
abga → Vector4
read-only
abgb → Vector4
read-only
abgg → Vector4
read-only
abgr ↔ Vector4
read / write
abr ↔ Vector3
read / write
abra → Vector4
read-only
abrb → Vector4
read-only
abrg ↔ Vector4
read / write
abrr → Vector4
read-only
ag ↔ Vector2
read / write
aga → Vector3
read-only
agaa → Vector4
read-only
agab → Vector4
read-only
agag → Vector4
read-only
agar → Vector4
read-only
agb ↔ Vector3
read / write
agba → Vector4
read-only
agbb → Vector4
read-only
agbg → Vector4
read-only
agbr ↔ Vector4
read / write
agg → Vector3
read-only
agga → Vector4
read-only
aggb → Vector4
read-only
aggg → Vector4
read-only
aggr → Vector4
read-only
agr ↔ Vector3
read / write
agra → Vector4
read-only
agrb ↔ Vector4
read / write
agrg → Vector4
read-only
agrr → Vector4
read-only
ar ↔ Vector2
read / write
ara → Vector3
read-only
araa → Vector4
read-only
arab → Vector4
read-only
arag → Vector4
read-only
arar → Vector4
read-only
arb ↔ Vector3
read / write
arba → Vector4
read-only
arbb → Vector4
read-only
arbg ↔ Vector4
read / write
arbr → Vector4
read-only
arg ↔ Vector3
read / write
arga → Vector4
read-only
argb ↔ Vector4
read / write
argg → Vector4
read-only
argr → Vector4
read-only
arr → Vector3
read-only
arra → Vector4
read-only
arrb → Vector4
read-only
arrg → Vector4
read-only
arrr → Vector4
read-only
b ↔ double
read / write
ba ↔ Vector2
read / write
baa → Vector3
read-only
baaa → Vector4
read-only
baab → Vector4
read-only
baag → Vector4
read-only
baar → Vector4
read-only
bab → Vector3
read-only
baba → Vector4
read-only
babb → Vector4
read-only
babg → Vector4
read-only
babr → Vector4
read-only
bag ↔ Vector3
read / write
baga → Vector4
read-only
bagb → Vector4
read-only
bagg → Vector4
read-only
bagr ↔ Vector4
read / write
bar ↔ Vector3
read / write
bara → Vector4
read-only
barb → Vector4
read-only
barg ↔ Vector4
read / write
barr → Vector4
read-only
bb → Vector2
read-only
bba → Vector3
read-only
bbaa → Vector4
read-only
bbab → Vector4
read-only
bbag → Vector4
read-only
bbar → Vector4
read-only
bbb → Vector3
read-only
bbba → Vector4
read-only
bbbb → Vector4
read-only
bbbg → Vector4
read-only
bbbr → Vector4
read-only
bbg → Vector3
read-only
bbga → Vector4
read-only
bbgb → Vector4
read-only
bbgg → Vector4
read-only
bbgr → Vector4
read-only
bbr → Vector3
read-only
bbra → Vector4
read-only
bbrb → Vector4
read-only
bbrg → Vector4
read-only
bbrr → Vector4
read-only
bg ↔ Vector2
read / write
bga ↔ Vector3
read / write
bgaa → Vector4
read-only
bgab → Vector4
read-only
bgag → Vector4
read-only
bgar ↔ Vector4
read / write
bgb → Vector3
read-only
bgba → Vector4
read-only
bgbb → Vector4
read-only
bgbg → Vector4
read-only
bgbr → Vector4
read-only
bgg → Vector3
read-only
bgga → Vector4
read-only
bggb → Vector4
read-only
bggg → Vector4
read-only
bggr → Vector4
read-only
bgr ↔ Vector3
read / write
bgra ↔ Vector4
read / write
bgrb → Vector4
read-only
bgrg → Vector4
read-only
bgrr → Vector4
read-only
br ↔ Vector2
read / write
bra ↔ Vector3
read / write
braa → Vector4
read-only
brab → Vector4
read-only
brag ↔ Vector4
read / write
brar → Vector4
read-only
brb → Vector3
read-only
brba → Vector4
read-only
brbb → Vector4
read-only
brbg → Vector4
read-only
brbr → Vector4
read-only
brg ↔ Vector3
read / write
brga ↔ Vector4
read / write
brgb → Vector4
read-only
brgg → Vector4
read-only
brgr → Vector4
read-only
brr → Vector3
read-only
brra → Vector4
read-only
brrb → Vector4
read-only
brrg → Vector4
read-only
brrr → Vector4
read-only
g ↔ double
read / write
ga ↔ Vector2
read / write
gaa → Vector3
read-only
gaaa → Vector4
read-only
gaab → Vector4
read-only
gaag → Vector4
read-only
gaar → Vector4
read-only
gab ↔ Vector3
read / write
gaba → Vector4
read-only
gabb → Vector4
read-only
gabg → Vector4
read-only
gabr ↔ Vector4
read / write
gag → Vector3
read-only
gaga → Vector4
read-only
gagb → Vector4
read-only
gagg → Vector4
read-only
gagr → Vector4
read-only
gar ↔ Vector3
read / write
gara → Vector4
read-only
garb ↔ Vector4
read / write
garg → Vector4
read-only
garr → Vector4
read-only
gb ↔ Vector2
read / write
gba ↔ Vector3
read / write
gbaa → Vector4
read-only
gbab → Vector4
read-only
gbag → Vector4
read-only
gbar ↔ Vector4
read / write
gbb → Vector3
read-only
gbba → Vector4
read-only
gbbb → Vector4
read-only
gbbg → Vector4
read-only
gbbr → Vector4
read-only
gbg → Vector3
read-only
gbga → Vector4
read-only
gbgb → Vector4
read-only
gbgg → Vector4
read-only
gbgr → Vector4
read-only
gbr ↔ Vector3
read / write
gbra ↔ Vector4
read / write
gbrb → Vector4
read-only
gbrg → Vector4
read-only
gbrr → Vector4
read-only
gg → Vector2
read-only
gga → Vector3
read-only
ggaa → Vector4
read-only
ggab → Vector4
read-only
ggag → Vector4
read-only
ggar → Vector4
read-only
ggb → Vector3
read-only
ggba → Vector4
read-only
ggbb → Vector4
read-only
ggbg → Vector4
read-only
ggbr → Vector4
read-only
ggg → Vector3
read-only
ggga → Vector4
read-only
gggb → Vector4
read-only
gggg → Vector4
read-only
gggr → Vector4
read-only
ggr → Vector3
read-only
ggra → Vector4
read-only
ggrb → Vector4
read-only
ggrg → Vector4
read-only
ggrr → Vector4
read-only
gr ↔ Vector2
read / write
gra ↔ Vector3
read / write
graa → Vector4
read-only
grab ↔ Vector4
read / write
grag → Vector4
read-only
grar → Vector4
read-only
grb ↔ Vector3
read / write
grba ↔ Vector4
read / write
grbb → Vector4
read-only
grbg → Vector4
read-only
grbr → Vector4
read-only
grg → Vector3
read-only
grga → Vector4
read-only
grgb → Vector4
read-only
grgg → Vector4
read-only
grgr → Vector4
read-only
grr → Vector3
read-only
grra → Vector4
read-only
grrb → Vector4
read-only
grrg → Vector4
read-only
grrr → Vector4
read-only
hashCode → int
The hash code for this object.
read-onlyoverride
isInfinite → bool
True if any component is infinite.
read-only
isNaN → bool
True if any component is NaN.
read-only
length ↔ double
Length.
read / write
length2 → double
Length squared.
read-only
p ↔ double
read / write
pp → Vector2
read-only
ppp → Vector3
read-only
pppp → Vector4
read-only
pppq → Vector4
read-only
ppps → Vector4
read-only
pppt → Vector4
read-only
ppq → Vector3
read-only
ppqp → Vector4
read-only
ppqq → Vector4
read-only
ppqs → Vector4
read-only
ppqt → Vector4
read-only
pps → Vector3
read-only
ppsp → Vector4
read-only
ppsq → Vector4
read-only
ppss → Vector4
read-only
ppst → Vector4
read-only
ppt → Vector3
read-only
pptp → Vector4
read-only
pptq → Vector4
read-only
ppts → Vector4
read-only
pptt → Vector4
read-only
pq ↔ Vector2
read / write
pqp → Vector3
read-only
pqpp → Vector4
read-only
pqpq → Vector4
read-only
pqps → Vector4
read-only
pqpt → Vector4
read-only
pqq → Vector3
read-only
pqqp → Vector4
read-only
pqqq → Vector4
read-only
pqqs → Vector4
read-only
pqqt → Vector4
read-only
pqs ↔ Vector3
read / write
pqsp → Vector4
read-only
pqsq → Vector4
read-only
pqss → Vector4
read-only
pqst ↔ Vector4
read / write
pqt ↔ Vector3
read / write
pqtp → Vector4
read-only
pqtq → Vector4
read-only
pqts ↔ Vector4
read / write
pqtt → Vector4
read-only
ps ↔ Vector2
read / write
psp → Vector3
read-only
pspp → Vector4
read-only
pspq → Vector4
read-only
psps → Vector4
read-only
pspt → Vector4
read-only
psq ↔ Vector3
read / write
psqp → Vector4
read-only
psqq → Vector4
read-only
psqs → Vector4
read-only
psqt ↔ Vector4
read / write
pss → Vector3
read-only
pssp → Vector4
read-only
pssq → Vector4
read-only
psss → Vector4
read-only
psst → Vector4
read-only
pst ↔ Vector3
read / write
pstp → Vector4
read-only
pstq ↔ Vector4
read / write
psts → Vector4
read-only
pstt → Vector4
read-only
pt ↔ Vector2
read / write
ptp → Vector3
read-only
ptpp → Vector4
read-only
ptpq → Vector4
read-only
ptps → Vector4
read-only
ptpt → Vector4
read-only
ptq ↔ Vector3
read / write
ptqp → Vector4
read-only
ptqq → Vector4
read-only
ptqs ↔ Vector4
read / write
ptqt → Vector4
read-only
pts ↔ Vector3
read / write
ptsp → Vector4
read-only
ptsq ↔ Vector4
read / write
ptss → Vector4
read-only
ptst → Vector4
read-only
ptt → Vector3
read-only
pttp → Vector4
read-only
pttq → Vector4
read-only
ptts → Vector4
read-only
pttt → Vector4
read-only
q ↔ double
read / write
qp ↔ Vector2
read / write
qpp → Vector3
read-only
qppp → Vector4
read-only
qppq → Vector4
read-only
qpps → Vector4
read-only
qppt → Vector4
read-only
qpq → Vector3
read-only
qpqp → Vector4
read-only
qpqq → Vector4
read-only
qpqs → Vector4
read-only
qpqt → Vector4
read-only
qps ↔ Vector3
read / write
qpsp → Vector4
read-only
qpsq → Vector4
read-only
qpss → Vector4
read-only
qpst ↔ Vector4
read / write
qpt ↔ Vector3
read / write
qptp → Vector4
read-only
qptq → Vector4
read-only
qpts ↔ Vector4
read / write
qptt → Vector4
read-only
qq → Vector2
read-only
qqp → Vector3
read-only
qqpp → Vector4
read-only
qqpq → Vector4
read-only
qqps → Vector4
read-only
qqpt → Vector4
read-only
qqq → Vector3
read-only
qqqp → Vector4
read-only
qqqq → Vector4
read-only
qqqs → Vector4
read-only
qqqt → Vector4
read-only
qqs → Vector3
read-only
qqsp → Vector4
read-only
qqsq → Vector4
read-only
qqss → Vector4
read-only
qqst → Vector4
read-only
qqt → Vector3
read-only
qqtp → Vector4
read-only
qqtq → Vector4
read-only
qqts → Vector4
read-only
qqtt → Vector4
read-only
qs ↔ Vector2
read / write
qsp ↔ Vector3
read / write
qspp → Vector4
read-only
qspq → Vector4
read-only
qsps → Vector4
read-only
qspt ↔ Vector4
read / write
qsq → Vector3
read-only
qsqp → Vector4
read-only
qsqq → Vector4
read-only
qsqs → Vector4
read-only
qsqt → Vector4
read-only
qss → Vector3
read-only
qssp → Vector4
read-only
qssq → Vector4
read-only
qsss → Vector4
read-only
qsst → Vector4
read-only
qst ↔ Vector3
read / write
qstp ↔ Vector4
read / write
qstq → Vector4
read-only
qsts → Vector4
read-only
qstt → Vector4
read-only
qt ↔ Vector2
read / write
qtp ↔ Vector3
read / write
qtpp → Vector4
read-only
qtpq → Vector4
read-only
qtps ↔ Vector4
read / write
qtpt → Vector4
read-only
qtq → Vector3
read-only
qtqp → Vector4
read-only
qtqq → Vector4
read-only
qtqs → Vector4
read-only
qtqt → Vector4
read-only
qts ↔ Vector3
read / write
qtsp ↔ Vector4
read / write
qtsq → Vector4
read-only
qtss → Vector4
read-only
qtst → Vector4
read-only
qtt → Vector3
read-only
qttp → Vector4
read-only
qttq → Vector4
read-only
qtts → Vector4
read-only
qttt → Vector4
read-only
r ↔ double
read / write
ra ↔ Vector2
read / write
raa → Vector3
read-only
raaa → Vector4
read-only
raab → Vector4
read-only
raag → Vector4
read-only
raar → Vector4
read-only
rab ↔ Vector3
read / write
raba → Vector4
read-only
rabb → Vector4
read-only
rabg ↔ Vector4
read / write
rabr → Vector4
read-only
rag ↔ Vector3
read / write
raga → Vector4
read-only
ragb ↔ Vector4
read / write
ragg → Vector4
read-only
ragr → Vector4
read-only
rar → Vector3
read-only
rara → Vector4
read-only
rarb → Vector4
read-only
rarg → Vector4
read-only
rarr → Vector4
read-only
rb ↔ Vector2
read / write
rba ↔ Vector3
read / write
rbaa → Vector4
read-only
rbab → Vector4
read-only
rbag ↔ Vector4
read / write
rbar → Vector4
read-only
rbb → Vector3
read-only
rbba → Vector4
read-only
rbbb → Vector4
read-only
rbbg → Vector4
read-only
rbbr → Vector4
read-only
rbg ↔ Vector3
read / write
rbga ↔ Vector4
read / write
rbgb → Vector4
read-only
rbgg → Vector4
read-only
rbgr → Vector4
read-only
rbr → Vector3
read-only
rbra → Vector4
read-only
rbrb → Vector4
read-only
rbrg → Vector4
read-only
rbrr → Vector4
read-only
rg ↔ Vector2
read / write
rga ↔ Vector3
read / write
rgaa → Vector4
read-only
rgab ↔ Vector4
read / write
rgag → Vector4
read-only
rgar → Vector4
read-only
rgb ↔ Vector3
read / write
rgba ↔ Vector4
read / write
rgbb → Vector4
read-only
rgbg → Vector4
read-only
rgbr → Vector4
read-only
rgg → Vector3
read-only
rgga → Vector4
read-only
rggb → Vector4
read-only
rggg → Vector4
read-only
rggr → Vector4
read-only
rgr → Vector3
read-only
rgra → Vector4
read-only
rgrb → Vector4
read-only
rgrg → Vector4
read-only
rgrr → Vector4
read-only
rr → Vector2
read-only
rra → Vector3
read-only
rraa → Vector4
read-only
rrab → Vector4
read-only
rrag → Vector4
read-only
rrar → Vector4
read-only
rrb → Vector3
read-only
rrba → Vector4
read-only
rrbb → Vector4
read-only
rrbg → Vector4
read-only
rrbr → Vector4
read-only
rrg → Vector3
read-only
rrga → Vector4
read-only
rrgb → Vector4
read-only
rrgg → Vector4
read-only
rrgr → Vector4
read-only
rrr → Vector3
read-only
rrra → Vector4
read-only
rrrb → Vector4
read-only
rrrg → Vector4
read-only
rrrr → Vector4
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
s ↔ double
read / write
sp ↔ Vector2
read / write
spp → Vector3
read-only
sppp → Vector4
read-only
sppq → Vector4
read-only
spps → Vector4
read-only
sppt → Vector4
read-only
spq ↔ Vector3
read / write
spqp → Vector4
read-only
spqq → Vector4
read-only
spqs → Vector4
read-only
spqt ↔ Vector4
read / write
sps → Vector3
read-only
spsp → Vector4
read-only
spsq → Vector4
read-only
spss → Vector4
read-only
spst → Vector4
read-only
spt ↔ Vector3
read / write
sptp → Vector4
read-only
sptq ↔ Vector4
read / write
spts → Vector4
read-only
sptt → Vector4
read-only
sq ↔ Vector2
read / write
sqp ↔ Vector3
read / write
sqpp → Vector4
read-only
sqpq → Vector4
read-only
sqps → Vector4
read-only
sqpt ↔ Vector4
read / write
sqq → Vector3
read-only
sqqp → Vector4
read-only
sqqq → Vector4
read-only
sqqs → Vector4
read-only
sqqt → Vector4
read-only
sqs → Vector3
read-only
sqsp → Vector4
read-only
sqsq → Vector4
read-only
sqss → Vector4
read-only
sqst → Vector4
read-only
sqt ↔ Vector3
read / write
sqtp ↔ Vector4
read / write
sqtq → Vector4
read-only
sqts → Vector4
read-only
sqtt → Vector4
read-only
ss → Vector2
read-only
ssp → Vector3
read-only
sspp → Vector4
read-only
sspq → Vector4
read-only
ssps → Vector4
read-only
sspt → Vector4
read-only
ssq → Vector3
read-only
ssqp → Vector4
read-only
ssqq → Vector4
read-only
ssqs → Vector4
read-only
ssqt → Vector4
read-only
sss → Vector3
read-only
sssp → Vector4
read-only
sssq → Vector4
read-only
ssss → Vector4
read-only
ssst → Vector4
read-only
sst → Vector3
read-only
sstp → Vector4
read-only
sstq → Vector4
read-only
ssts → Vector4
read-only
sstt → Vector4
read-only
st ↔ Vector2
read / write
storage → Float32List
The components of the vector.
read-onlyoverride
stp ↔ Vector3
read / write
stpp → Vector4
read-only
stpq ↔ Vector4
read / write
stps → Vector4
read-only
stpt → Vector4
read-only
stq ↔ Vector3
read / write
stqp ↔ Vector4
read / write
stqq → Vector4
read-only
stqs → Vector4
read-only
stqt → Vector4
read-only
sts → Vector3
read-only
stsp → Vector4
read-only
stsq → Vector4
read-only
stss → Vector4
read-only
stst → Vector4
read-only
stt → Vector3
read-only
sttp → Vector4
read-only
sttq → Vector4
read-only
stts → Vector4
read-only
sttt → Vector4
read-only
t ↔ double
read / write
tp ↔ Vector2
read / write
tpp → Vector3
read-only
tppp → Vector4
read-only
tppq → Vector4
read-only
tpps → Vector4
read-only
tppt → Vector4
read-only
tpq ↔ Vector3
read / write
tpqp → Vector4
read-only
tpqq → Vector4
read-only
tpqs ↔ Vector4
read / write
tpqt → Vector4
read-only
tps ↔ Vector3
read / write
tpsp → Vector4
read-only
tpsq ↔ Vector4
read / write
tpss → Vector4
read-only
tpst → Vector4
read-only
tpt → Vector3
read-only
tptp → Vector4
read-only
tptq → Vector4
read-only
tpts → Vector4
read-only
tptt → Vector4
read-only
tq ↔ Vector2
read / write
tqp ↔ Vector3
read / write
tqpp → Vector4
read-only
tqpq → Vector4
read-only
tqps ↔ Vector4
read / write
tqpt → Vector4
read-only
tqq → Vector3
read-only
tqqp → Vector4
read-only
tqqq → Vector4
read-only
tqqs → Vector4
read-only
tqqt → Vector4
read-only
tqs ↔ Vector3
read / write
tqsp ↔ Vector4
read / write
tqsq → Vector4
read-only
tqss → Vector4
read-only
tqst → Vector4
read-only
tqt → Vector3
read-only
tqtp → Vector4
read-only
tqtq → Vector4
read-only
tqts → Vector4
read-only
tqtt → Vector4
read-only
ts ↔ Vector2
read / write
tsp ↔ Vector3
read / write
tspp → Vector4
read-only
tspq ↔ Vector4
read / write
tsps → Vector4
read-only
tspt → Vector4
read-only
tsq ↔ Vector3
read / write
tsqp ↔ Vector4
read / write
tsqq → Vector4
read-only
tsqs → Vector4
read-only
tsqt → Vector4
read-only
tss → Vector3
read-only
tssp → Vector4
read-only
tssq → Vector4
read-only
tsss → Vector4
read-only
tsst → Vector4
read-only
tst → Vector3
read-only
tstp → Vector4
read-only
tstq → Vector4
read-only
tsts → Vector4
read-only
tstt → Vector4
read-only
tt → Vector2
read-only
ttp → Vector3
read-only
ttpp → Vector4
read-only
ttpq → Vector4
read-only
ttps → Vector4
read-only
ttpt → Vector4
read-only
ttq → Vector3
read-only
ttqp → Vector4
read-only
ttqq → Vector4
read-only
ttqs → Vector4
read-only
ttqt → Vector4
read-only
tts → Vector3
read-only
ttsp → Vector4
read-only
ttsq → Vector4
read-only
ttss → Vector4
read-only
ttst → Vector4
read-only
ttt → Vector3
read-only
tttp → Vector4
read-only
tttq → Vector4
read-only
ttts → Vector4
read-only
tttt → Vector4
read-only
w ↔ double
read / write
ww → Vector2
read-only
www → Vector3
read-only
wwww → Vector4
read-only
wwwx → Vector4
read-only
wwwy → Vector4
read-only
wwwz → Vector4
read-only
wwx → Vector3
read-only
wwxw → Vector4
read-only
wwxx → Vector4
read-only
wwxy → Vector4
read-only
wwxz → Vector4
read-only
wwy → Vector3
read-only
wwyw → Vector4
read-only
wwyx → Vector4
read-only
wwyy → Vector4
read-only
wwyz → Vector4
read-only
wwz → Vector3
read-only
wwzw → Vector4
read-only
wwzx → Vector4
read-only
wwzy → Vector4
read-only
wwzz → Vector4
read-only
wx ↔ Vector2
read / write
wxw → Vector3
read-only
wxww → Vector4
read-only
wxwx → Vector4
read-only
wxwy → Vector4
read-only
wxwz → Vector4
read-only
wxx → Vector3
read-only
wxxw → Vector4
read-only
wxxx → Vector4
read-only
wxxy → Vector4
read-only
wxxz → Vector4
read-only
wxy ↔ Vector3
read / write
wxyw → Vector4
read-only
wxyx → Vector4
read-only
wxyy → Vector4
read-only
wxyz ↔ Vector4
read / write
wxz ↔ Vector3
read / write
wxzw → Vector4
read-only
wxzx → Vector4
read-only
wxzy ↔ Vector4
read / write
wxzz → Vector4
read-only
wy ↔ Vector2
read / write
wyw → Vector3
read-only
wyww → Vector4
read-only
wywx → Vector4
read-only
wywy → Vector4
read-only
wywz → Vector4
read-only
wyx ↔ Vector3
read / write
wyxw → Vector4
read-only
wyxx → Vector4
read-only
wyxy → Vector4
read-only
wyxz ↔ Vector4
read / write
wyy → Vector3
read-only
wyyw → Vector4
read-only
wyyx → Vector4
read-only
wyyy → Vector4
read-only
wyyz → Vector4
read-only
wyz ↔ Vector3
read / write
wyzw → Vector4
read-only
wyzx ↔ Vector4
read / write
wyzy → Vector4
read-only
wyzz → Vector4
read-only
wz ↔ Vector2
read / write
wzw → Vector3
read-only
wzww → Vector4
read-only
wzwx → Vector4
read-only
wzwy → Vector4
read-only
wzwz → Vector4
read-only
wzx ↔ Vector3
read / write
wzxw → Vector4
read-only
wzxx → Vector4
read-only
wzxy ↔ Vector4
read / write
wzxz → Vector4
read-only
wzy ↔ Vector3
read / write
wzyw → Vector4
read-only
wzyx ↔ Vector4
read / write
wzyy → Vector4
read-only
wzyz → Vector4
read-only
wzz → Vector3
read-only
wzzw → Vector4
read-only
wzzx → Vector4
read-only
wzzy → Vector4
read-only
wzzz → Vector4
read-only
x ↔ double
read / write
xw ↔ Vector2
read / write
xww → Vector3
read-only
xwww → Vector4
read-only
xwwx → Vector4
read-only
xwwy → Vector4
read-only
xwwz → Vector4
read-only
xwx → Vector3
read-only
xwxw → Vector4
read-only
xwxx → Vector4
read-only
xwxy → Vector4
read-only
xwxz → Vector4
read-only
xwy ↔ Vector3
read / write
xwyw → Vector4
read-only
xwyx → Vector4
read-only
xwyy → Vector4
read-only
xwyz ↔ Vector4
read / write
xwz ↔ Vector3
read / write
xwzw → Vector4
read-only
xwzx → Vector4
read-only
xwzy ↔ Vector4
read / write
xwzz → Vector4
read-only
xx → Vector2
read-only
xxw → Vector3
read-only
xxww → Vector4
read-only
xxwx → Vector4
read-only
xxwy → Vector4
read-only
xxwz → Vector4
read-only
xxx → Vector3
read-only
xxxw → Vector4
read-only
xxxx → Vector4
read-only
xxxy → Vector4
read-only
xxxz → Vector4
read-only
xxy → Vector3
read-only
xxyw → Vector4
read-only
xxyx → Vector4
read-only
xxyy → Vector4
read-only
xxyz → Vector4
read-only
xxz → Vector3
read-only
xxzw → Vector4
read-only
xxzx → Vector4
read-only
xxzy → Vector4
read-only
xxzz → Vector4
read-only
xy ↔ Vector2
read / write
xyw ↔ Vector3
read / write
xyww → Vector4
read-only
xywx → Vector4
read-only
xywy → Vector4
read-only
xywz ↔ Vector4
read / write
xyx → Vector3
read-only
xyxw → Vector4
read-only
xyxx → Vector4
read-only
xyxy → Vector4
read-only
xyxz → Vector4
read-only
xyy → Vector3
read-only
xyyw → Vector4
read-only
xyyx → Vector4
read-only
xyyy → Vector4
read-only
xyyz → Vector4
read-only
xyz ↔ Vector3
read / write
xyzw ↔ Vector4
read / write
xyzx → Vector4
read-only
xyzy → Vector4
read-only
xyzz → Vector4
read-only
xz ↔ Vector2
read / write
xzw ↔ Vector3
read / write
xzww → Vector4
read-only
xzwx → Vector4
read-only
xzwy ↔ Vector4
read / write
xzwz → Vector4
read-only
xzx → Vector3
read-only
xzxw → Vector4
read-only
xzxx → Vector4
read-only
xzxy → Vector4
read-only
xzxz → Vector4
read-only
xzy ↔ Vector3
read / write
xzyw ↔ Vector4
read / write
xzyx → Vector4
read-only
xzyy → Vector4
read-only
xzyz → Vector4
read-only
xzz → Vector3
read-only
xzzw → Vector4
read-only
xzzx → Vector4
read-only
xzzy → Vector4
read-only
xzzz → Vector4
read-only
y ↔ double
read / write
yw ↔ Vector2
read / write
yww → Vector3
read-only
ywww → Vector4
read-only
ywwx → Vector4
read-only
ywwy → Vector4
read-only
ywwz → Vector4
read-only
ywx ↔ Vector3
read / write
ywxw → Vector4
read-only
ywxx → Vector4
read-only
ywxy → Vector4
read-only
ywxz ↔ Vector4
read / write
ywy → Vector3
read-only
ywyw → Vector4
read-only
ywyx → Vector4
read-only
ywyy → Vector4
read-only
ywyz → Vector4
read-only
ywz ↔ Vector3
read / write
ywzw → Vector4
read-only
ywzx ↔ Vector4
read / write
ywzy → Vector4
read-only
ywzz → Vector4
read-only
yx ↔ Vector2
read / write
yxw ↔ Vector3
read / write
yxww → Vector4
read-only
yxwx → Vector4
read-only
yxwy → Vector4
read-only
yxwz ↔ Vector4
read / write
yxx → Vector3
read-only
yxxw → Vector4
read-only
yxxx → Vector4
read-only
yxxy → Vector4
read-only
yxxz → Vector4
read-only
yxy → Vector3
read-only
yxyw → Vector4
read-only
yxyx → Vector4
read-only
yxyy → Vector4
read-only
yxyz → Vector4
read-only
yxz ↔ Vector3
read / write
yxzw ↔ Vector4
read / write
yxzx → Vector4
read-only
yxzy → Vector4
read-only
yxzz → Vector4
read-only
yy → Vector2
read-only
yyw → Vector3
read-only
yyww → Vector4
read-only
yywx → Vector4
read-only
yywy → Vector4
read-only
yywz → Vector4
read-only
yyx → Vector3
read-only
yyxw → Vector4
read-only
yyxx → Vector4
read-only
yyxy → Vector4
read-only
yyxz → Vector4
read-only
yyy → Vector3
read-only
yyyw → Vector4
read-only
yyyx → Vector4
read-only
yyyy → Vector4
read-only
yyyz → Vector4
read-only
yyz → Vector3
read-only
yyzw → Vector4
read-only
yyzx → Vector4
read-only
yyzy → Vector4
read-only
yyzz → Vector4
read-only
yz ↔ Vector2
read / write
yzw ↔ Vector3
read / write
yzww → Vector4
read-only
yzwx ↔ Vector4
read / write
yzwy → Vector4
read-only
yzwz → Vector4
read-only
yzx ↔ Vector3
read / write
yzxw ↔ Vector4
read / write
yzxx → Vector4
read-only
yzxy → Vector4
read-only
yzxz → Vector4
read-only
yzy → Vector3
read-only
yzyw → Vector4
read-only
yzyx → Vector4
read-only
yzyy → Vector4
read-only
yzyz → Vector4
read-only
yzz → Vector3
read-only
yzzw → Vector4
read-only
yzzx → Vector4
read-only
yzzy → Vector4
read-only
yzzz → Vector4
read-only
z ↔ double
read / write
zw ↔ Vector2
read / write
zww → Vector3
read-only
zwww → Vector4
read-only
zwwx → Vector4
read-only
zwwy → Vector4
read-only
zwwz → Vector4
read-only
zwx ↔ Vector3
read / write
zwxw → Vector4
read-only
zwxx → Vector4
read-only
zwxy ↔ Vector4
read / write
zwxz → Vector4
read-only
zwy ↔ Vector3
read / write
zwyw → Vector4
read-only
zwyx ↔ Vector4
read / write
zwyy → Vector4
read-only
zwyz → Vector4
read-only
zwz → Vector3
read-only
zwzw → Vector4
read-only
zwzx → Vector4
read-only
zwzy → Vector4
read-only
zwzz → Vector4
read-only
zx ↔ Vector2
read / write
zxw ↔ Vector3
read / write
zxww → Vector4
read-only
zxwx → Vector4
read-only
zxwy ↔ Vector4
read / write
zxwz → Vector4
read-only
zxx → Vector3
read-only
zxxw → Vector4
read-only
zxxx → Vector4
read-only
zxxy → Vector4
read-only
zxxz → Vector4
read-only
zxy ↔ Vector3
read / write
zxyw ↔ Vector4
read / write
zxyx → Vector4
read-only
zxyy → Vector4
read-only
zxyz → Vector4
read-only
zxz → Vector3
read-only
zxzw → Vector4
read-only
zxzx → Vector4
read-only
zxzy → Vector4
read-only
zxzz → Vector4
read-only
zy ↔ Vector2
read / write
zyw ↔ Vector3
read / write
zyww → Vector4
read-only
zywx ↔ Vector4
read / write
zywy → Vector4
read-only
zywz → Vector4
read-only
zyx ↔ Vector3
read / write
zyxw ↔ Vector4
read / write
zyxx → Vector4
read-only
zyxy → Vector4
read-only
zyxz → Vector4
read-only
zyy → Vector3
read-only
zyyw → Vector4
read-only
zyyx → Vector4
read-only
zyyy → Vector4
read-only
zyyz → Vector4
read-only
zyz → Vector3
read-only
zyzw → Vector4
read-only
zyzx → Vector4
read-only
zyzy → Vector4
read-only
zyzz → Vector4
read-only
zz → Vector2
read-only
zzw → Vector3
read-only
zzww → Vector4
read-only
zzwx → Vector4
read-only
zzwy → Vector4
read-only
zzwz → Vector4
read-only
zzx → Vector3
read-only
zzxw → Vector4
read-only
zzxx → Vector4
read-only
zzxy → Vector4
read-only
zzxz → Vector4
read-only
zzy → Vector3
read-only
zzyw → Vector4
read-only
zzyx → Vector4
read-only
zzyy → Vector4
read-only
zzyz → Vector4
read-only
zzz → Vector3
read-only
zzzw → Vector4
read-only
zzzx → Vector4
read-only
zzzy → Vector4
read-only
zzzz → Vector4
read-only

Methods

absolute() → void
Set this to the absolute.
absoluteError(Vector4 correct) → double
Absolute error between this and correct
add(Vector4 arg) → void
addScaled(Vector4 arg, double factor) → void
Add arg scaled by factor to this.
applyMatrix4(Matrix4 arg) → void
Multiplies this by arg.
ceil() → void
Ceil entries in this.
clamp(Vector4 min, Vector4 max) → void
Clamp each entry n in this in the range [minn]-[maxn].
clampScalar(double min, double max) → void
Clamp entries in this in the range min-max.
clone() → Vector4
Create a copy of this.
copyFromArray(List<double> array, [int offset = 0]) → void
Copies elements from array into this starting at offset.
copyInto(Vector4 arg) → Vector4
Copy this
copyIntoArray(List<double> array, [int offset = 0]) → void
Copies this into array starting at offset.
distanceTo(Vector4 arg) → double
Distance from this to arg
distanceToSquared(Vector4 arg) → double
Squared distance from this to arg
div(Vector4 arg) → void
Divide this by arg.
dot(Vector4 other) → double
Inner product.
floor() → void
Floor entries in this.
multiply(Vector4 arg) → void
Multiply this by arg.
negate() → void
Negate this.
normalize() → double
Normalizes this.
normalized() → Vector4
Normalizes copy of this.
normalizeInto(Vector4 out) → Vector4
Normalize vector into out.
normalizeLength() → double
Normalizes this. Returns length of vector before normalization. DEPRCATED: Use normalize.
Deprecated('Use normalize() insteaed.')">@Deprecated('Use normalize() insteaed.')
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
relativeError(Vector4 correct) → double
Relative error between this and correct
round() → void
Round entries in this.
roundToZero() → void
Round entries in this towards zero.
scale(double arg) → void
Scale this by arg.
scaled(double arg) → Vector4
Create a copy of this scaled by arg.
setFrom(Vector4 other) → void
Set the values by copying them from other.
setIdentity() → void
Set to the identity vector.
setValues(double x_, double y_, double z_, double w_) → void
Set the values of the vector.
setZero() → void
Zero the vector.
splat(double arg) → void
Splat arg into all lanes of the vector.
sub(Vector4 arg) → void
Subtract arg from this.
toString() → String
Returns a printable string
override

Operators

operator *(double scale) → Vector4
Scale.
operator +(Vector4 other) → Vector4
Add two vectors.
operator -(Vector4 other) → Vector4
Subtract two vectors.
operator /(double scale) → Vector4
Scale.
operator ==(Object? other) → bool
Check if two vectors are the same.
override
operator [](int i) → double
Access the component of the vector at the index i.
operator []=(int i, double v) → void
Set the component of the vector at the index i.
operator unary-() → Vector4
Negate.

Static Methods

max(Vector4 a, Vector4 b, Vector4 result) → void
Set the values of result to the maximum of a and b for each line.
min(Vector4 a, Vector4 b, Vector4 result) → void
Set the values of result to the minimum of a and b for each line.
mix(Vector4 min, Vector4 max, double a, Vector4 result) → void
Interpolate between min and max with the amount of a using a linear interpolation and store the values in result.