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