static public int GetWholeSeconds(this Duration item, out Duration remainder) { int whole_seconds = item.GetWholeSeconds(); remainder = item - Duration.Seconds(whole_seconds); return(whole_seconds); }
public AnimatedFloat(AnimateOperation o) { operation = o; step_timer = new StepStopwatch(Duration.Seconds(0.050f)).Chain(z => z.Start()); is_animating = true; sleep_timer = new Timer(Duration.Seconds(0.5f)); }
public AffectedValue(VALUE_TYPE r) { rest_value = r; is_active = true; step_timer = new StepStopwatch(Duration.Seconds(0.050f)).StartAndGet(); sleep_timer = new Timer(Duration.Seconds(0.5f)); affectors = new List <AffectedValueAffector <VALUE_TYPE> >(); }
static public void SetDurationInSeconds(this TemporalDuration item, float seconds) { item.SetDuration(Duration.Seconds(seconds)); }
static public void RestartSetElapsedTimeInSeconds(this TemporalSeries item, float seconds) { item.RestartSetElapsedTime(Duration.Seconds(seconds)); }
static public int GetNormalRotatingHashCodeEX(this Object item) { return(item.GetRotatingHashCodeEX(Duration.Seconds(4.0f))); }
static public bool StartSetDurationInSeconds(this TemporalDuration item, float seconds) { return(item.StartSetDuration(Duration.Seconds(seconds))); }
static public bool StartWithRandomElapsedTimeInSeconds(this TemporalSeries item, float seconds) { return(item.StartWithRandomElapsedTime(Duration.Seconds(seconds))); }