Exemplo n.º 1
0
        public void Lerp()
        {
            Vector v1 = new Vector(1, 1);
            Vector v2 = new Vector(3, 3);
            Vector v3 = VectorUtil.Lerp(v1, v2, 0.5);

            Assert.AreEqual(new Vector(2, 2), v3);
        }
 protected override object GetValueAt(float dt, float t)
 {
     return(VectorUtil.Lerp(_start, _target.position, EaseMethods.LinearEaseNone(t, 0f, 1f, this.Duration)));
 }