Skip to main content

Module spatial

Module spatial 

Source
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§

SpatialCut
The two halves of a spatial segment cut at one point.

Functions§

along_path
The point fraction of the arc length along segments, which join end to end, and the path’s unit direction there. fraction is taken modulo 1 when closed, else clamped to 0..=1. A path of no length gives its first point and no direction (zero).
cut_along
The cubic of point_along cut where amount (in 0..=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 at from.
direction_along
The unit direction of the cubic of point_along where amount (clamped to 0..=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. None for a segment of no length.
motion_polyline
The motion path between keyframe values as a polyline with samples points per segment.
point_along
The point amount of the arc length along the cubic from from (control from + out_tangent) to to (control to + 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 length along_path measures: one more value than segments, from 0 to 1. Empty for a path of no length.