TickTime
Properties
Static Methods
createWithFrameAndFrameRate
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>
TickTime
Constructs a TickTime object with a frame and a frame rate.
Parameters
createWithSeconds
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>
TickTime
Constructs a TickTime object with seconds.
Parameters
createWithTicks
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>
TickTime
Constructs a TickTime object with ticks as a string.
Parameters
Instance Methods
add
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>
TickTime
Add another TickTime to this one and return it. This TickTime is not modified.
Parameters
alignToFrame
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>
TickTime
alignToFrame will return a TickTime that is aligned to the nearest frame boundary less than the given time, for a given frame rate by rounding any fractional portion.
Parameters
alignToNearestFrame
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>
TickTime
AlignToNearestFrame will return a TickTime that is aligned to the nearest frame boundary greater than or less than the given time, for a given frame rate by rounding any fractional portion.
Parameters
divide
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>
TickTime
Divide this TickTime by a divisor and return it. In case of a division by zero, TIME_INVALID is returned. This TickTime is not modified.
Parameters
equals
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>
boolean
Returns true if the given TickTime is equal to the TickTime object
Parameters
multiply
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>
TickTime
Multiply this TickTime with a factor and return it. This TickTime is not modified.
Parameters
subtract
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>
TickTime
Subtract another TickTime from this one and return it. This TickTime is not modified.