Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Try reading this out loud

View JVerbose.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
boolean phaseThree = false;
if (enablePrecision == true)
{
phaseThree = true;
for (int i = 0; i < components.length; ++i)
{
if (!components[i].isPrecise)
{
phaseThree = false;
}
}
}
 
if (!phaseThree)
{
for (int i = 0; i < segmentController.timeCycles.length; ++i)
{
timeCycleStates[i].setTime(segmentController.timeCycles[i] instanceof ReverseTimeCycleAnalyser ?
timeCycleStates[i].getDuration() * ( 1 - (normalizedTime - segmentController.timeCycles[i].cycleOffsetValue) ) :
timeCycleStates[i].getDuration() * (normalizedTime - segmentController.timeCycles[i].cycleOffsetValue)
);
}
}
 
if (speed > speedThreshold)
{
normalizedTime *= speed;
for (int i = 0; i < segmentController.timeAdvancedCycles.length; ++i)
{
segmentController.timeAdvancedCycles[i].time = timeAdvancedCycleStates[i].getDuration() * normalizedTime;
}
analyseCycles();
for (int i = 0; i < segmentController.timeAdvancedCycles.length; ++i)
{
if (segmentController.timeAdvancedCycles[i].getTime() > maxTimeLimit ||
segmentController.timeAdvancedCycles[i].getTime() < minTimeLimit)
{
segmentController.timeAdvancedCycles[i].setTime(
segmentController.timeCycles[i] instanceof ReverseTimeCycleAnalyser ?
timeCycleStates[i].getDuration() * ( 1 - (normalizedTime - segmentController.timeAdvancedCycles[i].cycleOffsetValue) ) :
timeCycleStates[i].getDuration() * (normalizedTime - segmentController.timeAdvancedCycles[i].cycleOffsetValue)
);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.