Exemplo n.º 1
0
        private static List <PVector> GetNext(List <PVector> points, float t)
        {
            var retVal = new List <PVector>();

            for (int i = 0; i < points.Count - 1; i++)
            {
                var p = PVector.Sub(points[i + 1], points[i]);
                p.Mult(t);
                p.Add(points[i]);
                retVal.Add(p);
            }
            return(retVal);
        }
Exemplo n.º 2
0
 public static PVector operator -(PVector v1, PVector v2)
 {
     return(PVector.Sub(v1, v2));
 }