[*] Reformat these lines
This commit is contained in:
parent
a5a9fa3887
commit
dbacc71870
@ -567,12 +567,12 @@ namespace Aurora::RNG
|
||||
range[1] = max[1] - min[1];
|
||||
|
||||
auto uSeed = this->NextU64();
|
||||
auto uComponentA = RngConvertToDecimal(uSeed);
|
||||
auto uComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentA = RngConvertToDecimal(uSeed);
|
||||
auto dComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
|
||||
return AuVec2 {
|
||||
(uComponentA * range[0]) + min[0],
|
||||
(uComponentB * range[1]) + min[1]
|
||||
(dComponentA * range[0]) + min[0],
|
||||
(dComponentB * range[1]) + min[1]
|
||||
};
|
||||
}
|
||||
|
||||
@ -596,14 +596,14 @@ namespace Aurora::RNG
|
||||
range[2] = max[2] - min[2];
|
||||
|
||||
auto uSeed = this->NextU64();
|
||||
auto uComponentA = RngConvertToDecimal(uSeed);
|
||||
auto uComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentA = RngConvertToDecimal(uSeed);
|
||||
auto dComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
|
||||
return AuVec3 {
|
||||
(uComponentA * range[0]) + min[0],
|
||||
(uComponentB * range[1]) + min[1],
|
||||
(uComponentC * range[2]) + min[2]
|
||||
(dComponentA * range[0]) + min[0],
|
||||
(dComponentB * range[1]) + min[1],
|
||||
(dComponentC * range[2]) + min[2]
|
||||
};
|
||||
}
|
||||
|
||||
@ -630,16 +630,16 @@ namespace Aurora::RNG
|
||||
range[3] = max[3] - min[3];
|
||||
|
||||
auto uSeed = this->NextU64();
|
||||
auto uComponentA = RngConvertToDecimal(uSeed);
|
||||
auto uComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentD = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentA = RngConvertToDecimal(uSeed);
|
||||
auto dComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentD = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
|
||||
return AuVec4 {
|
||||
(uComponentA * range[0]) + min[0],
|
||||
(uComponentB * range[1]) + min[1],
|
||||
(uComponentC * range[2]) + min[2],
|
||||
(uComponentD * range[3]) + min[3]
|
||||
(dComponentA * range[0]) + min[0],
|
||||
(dComponentB * range[1]) + min[1],
|
||||
(dComponentC * range[2]) + min[2],
|
||||
(dComponentD * range[3]) + min[3]
|
||||
};
|
||||
}
|
||||
|
||||
@ -773,12 +773,12 @@ namespace Aurora::RNG
|
||||
for (AU_ITERATE_N(uIndex, rngBytes.size()))
|
||||
{
|
||||
auto uSeed = rngBytes[uIndex];
|
||||
auto uComponentA = RngConvertToDecimal(uSeed);
|
||||
auto uComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentA = RngConvertToDecimal(uSeed);
|
||||
auto dComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
|
||||
ret[uIndex] = AuVec2 {
|
||||
(uComponentA * range[0]) + min[0],
|
||||
(uComponentB * range[1]) + min[1]
|
||||
(dComponentA * range[0]) + min[0],
|
||||
(dComponentB * range[1]) + min[1]
|
||||
};
|
||||
}
|
||||
|
||||
@ -799,12 +799,12 @@ namespace Aurora::RNG
|
||||
|
||||
for (AU_ITERATE_N(uIndex, uCount))
|
||||
{
|
||||
auto uComponentA = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentA = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
|
||||
ret[uIndex] = AuVec2 {
|
||||
(uComponentA * range[0]) + min[0],
|
||||
(uComponentB * range[1]) + min[1]
|
||||
(dComponentA * range[0]) + min[0],
|
||||
(dComponentB * range[1]) + min[1]
|
||||
};
|
||||
}
|
||||
|
||||
@ -852,14 +852,14 @@ namespace Aurora::RNG
|
||||
for (AU_ITERATE_N(uIndex, rngBytes.size()))
|
||||
{
|
||||
auto uSeed = rngBytes[uIndex];
|
||||
auto uComponentA = RngConvertToDecimal(uSeed);
|
||||
auto uComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentA = RngConvertToDecimal(uSeed);
|
||||
auto dComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
|
||||
ret[uIndex] = AuVec3 {
|
||||
(uComponentA * range[0]) + min[0],
|
||||
(uComponentB * range[1]) + min[1],
|
||||
(uComponentC * range[2]) + min[2]
|
||||
(dComponentA * range[0]) + min[0],
|
||||
(dComponentB * range[1]) + min[1],
|
||||
(dComponentC * range[2]) + min[2]
|
||||
};
|
||||
}
|
||||
|
||||
@ -881,14 +881,14 @@ namespace Aurora::RNG
|
||||
|
||||
for (AU_ITERATE_N(uIndex, uCount))
|
||||
{
|
||||
auto uComponentA = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentA = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
|
||||
ret[uIndex] = AuVec3 {
|
||||
(uComponentA * range[0]) + min[0],
|
||||
(uComponentB * range[1]) + min[1],
|
||||
(uComponentC * range[2]) + min[2]
|
||||
(dComponentA * range[0]) + min[0],
|
||||
(dComponentB * range[1]) + min[1],
|
||||
(dComponentC * range[2]) + min[2]
|
||||
};
|
||||
}
|
||||
|
||||
@ -941,16 +941,16 @@ namespace Aurora::RNG
|
||||
for (AU_ITERATE_N(uIndex, rngBytes.size()))
|
||||
{
|
||||
auto uSeed = rngBytes[uIndex];
|
||||
auto uComponentA = RngConvertToDecimal(uSeed);
|
||||
auto uComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentD = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentA = RngConvertToDecimal(uSeed);
|
||||
auto dComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentD = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
|
||||
ret[uIndex] = AuVec4 {
|
||||
(uComponentA * range[0]) + min[0],
|
||||
(uComponentB * range[1]) + min[1],
|
||||
(uComponentC * range[2]) + min[2],
|
||||
(uComponentD * range[3]) + min[3]
|
||||
(dComponentA * range[0]) + min[0],
|
||||
(dComponentB * range[1]) + min[1],
|
||||
(dComponentC * range[2]) + min[2],
|
||||
(dComponentD * range[3]) + min[3]
|
||||
};
|
||||
}
|
||||
|
||||
@ -973,16 +973,16 @@ namespace Aurora::RNG
|
||||
|
||||
for (AU_ITERATE_N(uIndex, uCount))
|
||||
{
|
||||
auto uComponentA = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto uComponentD = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentA = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentB = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentC = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
auto dComponentD = RngConvertToDecimal(uSeed = (AuFnv1a64Runtime<8>(&uSeed)));
|
||||
|
||||
ret[uIndex] = AuVec4 {
|
||||
(uComponentA * range[0]) + min[0],
|
||||
(uComponentB * range[1]) + min[1],
|
||||
(uComponentC * range[2]) + min[2],
|
||||
(uComponentD * range[3]) + min[3]
|
||||
(dComponentA * range[0]) + min[0],
|
||||
(dComponentB * range[1]) + min[1],
|
||||
(dComponentC * range[2]) + min[2],
|
||||
(dComponentD * range[3]) + min[3]
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user