Skip to content

raylib.GetSplinePointCatmullRom

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get spline point for a given t [0.0f .. 1.0f], Catmull-Rom

Parameters

Parameter Default Value Note
p1
p2
p3
p4
t

Return value

Condition Return Value
(always) map

Notes

Example

// Get the midpoint on a Catmull-Rom spline segment
pt = raylib.GetSplinePointCatmullRom([50,200], [150,50], [250,250], [350,100], 0.5)
print "Point: " + pt[0] + ", " + pt[1]

Clone this wiki locally