public Vector3 getGradient(int sector, float t) { var k1 = _keys[sector]; var k2 = _keys[sector + 1]; return(SplineUtils.GetGradient(k1.value, k2.value, k1.ts, k2.td, t)); }
public Vector3 getGradient(int sector, float t) { int i = sector; var v1 = _keys[i].Key; var v2 = _keys[i + 1].Key; var v3 = _keys[i].Value; var v4 = _keys[i + 1].Value; return(SplineUtils.GetGradient(v1, v2, v3, v4, t)); }