Skip to content

raylib.GetSplinePointBasis

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Get spline point (map with x, y) for a given t from 0 to 1: 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