Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Try reading this out loud
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.