ConstPoint

class kurbopy.ConstPoint

A single ConstPoint segment.

arclen(accuracy)

The arc length of the curve.

The result is accurate to the given accuracy (subject to roundoff errors for ridiculously low values). Compute time may vary with accuracy, if the curve needs to be subdivided.

deriv()

The derivative of the curve.

Note that the type of the return value is somewhat inaccurate, as the derivative of a curve (mapping of param to point) is a mapping of param to vector. We choose to accept this rather than have a more complex type scheme.

end()

The end point.

eval(t)

Evaluate the curve at parameter t.

Generally t is in the range [0..1].

inv_arclen(arclen, accuracy)

Solve for the parameter that has the given arc length from the start.

This implementation uses the IPT method, as provided by [common::solve_itp]. This is as robust as bisection but typically converges faster. In addition, the method takes care to compute arc lengths of increasingly smaller segments of the curve, as that is likely faster than repeatedly computing the arc length of the segment starting at t=0.

is_finite()

Is this value finite?

is_nan()

Is this value NaN?

start()

The start point.

subdivide()

Subdivide into (roughly) halves.

subsegment()

Get a subsegment of the curve for the given parameter range.