Skip to content

raylib.GetSplinePointLinear

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get spline point for a given t [0.0f .. 1.0f], Linear

Parameters

Parameter Default Value Note
startPos
endPos
t

Return value

Condition Return Value
(always) map

Notes

Example

// Get the midpoint on a linear segment between two points
pt = raylib.GetSplinePointLinear([0,0], [200,100], 0.5)
print "Midpoint: " + pt[0] + ", " + pt[1]

Clone this wiki locally