Expand description
Motion along spatial curves. A position keyframed with tangents travels along the cubic between keyframes by arc length, at the speed its timing curve sets.
Structs§
- Spatial
Cut - The two halves of a spatial segment cut at one point.
Functions§
- along_
path - The point
fractionof the arc length alongsegments, which join end to end, and the path’s unit direction there.fractionis taken modulo 1 whenclosed, else clamped to0..=1. A path of no length gives its first point and no direction (zero). - cut_
along - The cubic of
point_alongcut whereamount(in0..=1) of its arc length lies, by de Casteljau subdivision, so the two halves trace the same path. A segment of no length is cut atfrom. - direction_
along - The unit direction of the cubic of
point_alongwhereamount(clamped to0..=1) of its arc length lies: the curve’s tangent there, the next control leg where the tangent vanishes at an end, and the chord’s direction when both tangents are zero.Nonefor a segment of no length. - motion_
polyline - The motion path between keyframe values as a polyline with
samplespoints per segment. - point_
along - The point
amountof the arc length along the cubic fromfrom(controlfrom + out_tangent) toto(controlto + in_tangent), in a space scaled to screen proportions. - segment_
fractions - Where each of
segments, which join end to end, starts and where the last ends, as fractions of the arc lengthalong_pathmeasures: one more value than segments, from 0 to 1. Empty for a path of no length.