TickTime
Properties
Name | Type | Access | Min Version | Description |
---|---|---|---|---|
seconds | number | R | 25.0 | Get the TickTime in seconds |
ticks | string | R | 25.0 | Get the TickTime in ticks as a string |
ticksNumber | number | R | 25.0 | Get the TickTime in ticks as a number |
Static Methods
createWithFrameAndFrameRate
25.0TickTime
Constructs a TickTime object with a frame and a frame rate.
Parameters
Name | Type | Description |
---|---|---|
frameCount | number | - |
frameRate | - |
createWithSeconds
25.0TickTime
Constructs a TickTime object with seconds.
Parameters
Name | Type | Description |
---|---|---|
seconds | number | - |
createWithTicks
25.0TickTime
Constructs a TickTime object with ticks as a string.
Parameters
Name | Type | Description |
---|---|---|
ticks | string | - |
Instance Methods
add
25.0TickTime
Add another TickTime to this one and return it. This TickTime is not modified.
Parameters
Name | Type | Description |
---|---|---|
tickTime | - |
alignToFrame
25.0TickTime
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
Name | Type | Description |
---|---|---|
frameRate | - |
alignToNearestFrame
25.0TickTime
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
Name | Type | Description |
---|---|---|
frameRate | - |
divide
25.0TickTime
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
Name | Type | Description |
---|---|---|
divisor | number | - |
equals
25.0boolean
Returns true if the given TickTime is equal to the TickTime object
Parameters
Name | Type | Description |
---|---|---|
tickTime | - |
multiply
25.0TickTime
Multiply this TickTime with a factor and return it. This TickTime is not modified.
Parameters
Name | Type | Description |
---|---|---|
factor | number | - |
subtract
25.0TickTime
Subtract another TickTime from this one and return it. This TickTime is not modified.
Parameters
Name | Type | Description |
---|---|---|
tickTime | - |