private static vec3 Interpolate(float time, List <FramePosition> fp) { int fpi = Timed.Get <FramePosition>(fp, time); if (fpi == -1) { return(vec3.Zero); } vec3 res = FramePosition.Interpolate(fp[fpi - 1], time, fp[fpi]); return(res); }
private static quat Interpolate(float time, List <FrameRotation> fr) { int fri = Timed.Get <FrameRotation>(fr, time); if (fri == -1) { return(quat.Identity); } quat r = FrameRotation.Interpolate(fr[fri - 1], time, fr[fri]); return(r); }