Esempio n. 1
0
 public static Vector3 Linear(Vector3 p0, Vector3 p1, float t)
 {
     return(new Vector3(
                Bezier.Linear(p0.x, p1.x, t),
                Bezier.Linear(p0.y, p1.y, t),
                Bezier.Linear(p0.z, p1.z, t)));
 }
Esempio n. 2
0
 public static Vector2 Linear(Vector2 p0, Vector2 p1, float t)
 {
     return(new Vector2(
                Bezier.Linear(p0.x, p1.x, t),
                Bezier.Linear(p0.y, p1.y, t)));
 }