A-Level · Computer Graphics

Convex Combinations

Drag either slider to move vector e between c and d. Because α + β = 1, the tip of e always stays on the dashed line connecting the two vector tips.

Interactive convex combination e = alpha*c + beta*d Two sliders control alpha and beta, moving the white arrow e between the yellow vector c and the magenta vector d. y x c d e
α 0.60
β 0.40
c = (2, 9)     d = (10, 7)
e = (α × c) + (β × d) =