Skip to main content

spline3_hermite_subdivide

spline3_hermite_subdivide(output, output_offset, output_stride, p0, p1, m0, m1, [t])

Subdivides a Hermite curve into two hermite curves. The result is written in form [a_p0, a_p1, a_m0, a_m1, b_p0, b_p1, b_m0, b_m1], note the stride and offset.

Kind: global function

ParamTypeDefaultDescription
outputArray.<number>where to write the result
output_offsetnumberwhere to start writing
output_stridenumberwhat should be the step between result values, useful when working in higher dimensions. Typically, this will be 1.
p0number
p1number
m0numbertangent at p0
m1numbertangent at p1
[t]number0.5where to split, normalized position, must be value between 0 and 1