Skip to content

raylib.GetSplinePointBasis

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get spline point for a given t [0.0f .. 1.0f], B-Spline

Parameters

Parameter Default Value Note
p1
p2
p3
p4
t

Return value

Condition Return Value
(always) map

Notes

Example

// Get the midpoint on a B-Spline segment
pt = raylib.GetSplinePointBasis([50,200], [100,50], [200,250], [300,150], 0.5)
print "Point: " + pt[0] + ", " + pt[1]

Clone this wiki locally