Summary

Represents a duration of time in a movie. Uses fixed point so precision is consistent at any absolute time. Defaults to MovieMaker.MovieTime.Zero.

Properties

Absolute
IsNegative
IsPositive
IsZero
Ticks
TotalSeconds

Methods

Clamp
CompareTo
Floor
GetFraction
GetFrameCount Given a <paramref name="frameRate" />, how many frames would need to be allocated to represent every moment of time up until now. This is always at least <c>1</c>, and will be <c>1</c> more than Sandbox.MovieMaker.MovieTime.GetFrameIndex(System.Int32) unless this time is exactly on a frame boundary.
GetFrameIndex Given a <paramref name="frameRate" />, how many frames have passed before reaching this time.
Round

Static Fields

TickRate How many Sandbox.MovieMaker.MovieTime.Ticks per second. This value should nicely divide into common frame rates.

Static Properties

Epsilon
MaxValue
MinValue
SupportedFrameRates Frame rates <c><= 120</c> that can be perfectly represented by Sandbox.MovieMaker.MovieTime.TickRate, in ascending order. Venturing outside these rates will lead to some frames being slightly different durations than others.
Zero

Static Methods

Distance
FromFrames
FromSeconds
FromTicks
Lerp
Max
Min
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.