summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-18439.cpp
blob: 0c40e831b9ded27094f2657a073c139fbc3acec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
floatNx3 randomRotationMatrices[3];
if (rotationRandomnessX > epsilon() || rotationRandomnessY > epsilon())
{
// Parameters are being double indented.
    floatNx3 rotationEuler = floatNx3(
        (GenerateRandom(randomSeed + intN(kParticleSystemExternalForcesRotationRandomnessXId)) * 2 - 1) * rotationRandomnessX,
        (GenerateRandom(randomSeed + intN(kParticleSystemExternalForcesRotationRandomnessYId)) * 2 - 1) * rotationRandomnessY,
        floatN(ZERO));
    eulerToMatrix(rotationEuler, randomRotationMatrices);

    toForce = mul(randomRotationMatrices, toForce);
}