Garry's Mod Wiki

Revision Difference

math.calcBSplineN#546911

<function name="calcBSplineN" parent="math" type="libraryfunc"> <description> <internal>Use <page>math.BSplinePoint</page> instead.</internal> Basic code for Bezier-Spline algorithm, helper function for <page>math.BSplinePoint</page>. </description> <realm>Shared and Menu</realm> <file line="90-130">lua/includes/extensions/math.lua</file> <file line="102-L142">lua/includes/extensions/math.lua</file> <args> <arg name="i" type="number"></arg> <arg name="k" type="number"><bug pull="1477">Sending in a value < 1 will result in an infinite loop.</bug></arg> <arg name="t" type="number"></arg> <arg name="tinc" type="number"></arg> </args> <rets> <ret name="" type="number"></ret> </rets> </function>