linear
Functionlinear(p1: Point2D, p2: Point2D, t: float) -> Point2D
Linear interpolation between two points (default path function)
Parameters
-
p1 - Start point
-
p2 - End point
-
t - Interpolation parameter (0.0 to 1.0, already eased)
Returns
Point interpolated linearly between p1 and p2
Examples
linear(Point2D(0, 0), Point2D(100, 100), 0.5)
Point2D(50.0, 50.0)