The body, for the joint's axes and range.
The joint.
The [flexion, abduction, twist] at share 0, degrees.
The same at share 1.
How far from from to to, clamped to [0, 1].
The blended [flexion, abduction, twist], degrees; an end is returned as given.
A joint's clinical angles part of the way between two readings of them, blended the way the joint moves: a ball joint as a rotation, a joint with fewer freedoms angle by angle.
A ball joint's rotation has more than one clinical triple: a raised upper arm reads
[90, -30, -57]and[95, 112, 90]for nearly the same arm, the two readings of one rotation. A blend of the numbers would depend on which reading each end is written in, and a solver writes an end in either: a drink's reach read its goal85.8/145.4/87.1and then94.6/-26.7/-84.6, one rotation within a third of a degree, and a blend of angles stepped 7.8 degrees of abduction between them. So a ball joint is blended as its two rotations, on the shorter arc between them (Shoemake 1985, "Animating rotation with quaternion curves", SIGGRAPH), which no reading enters.The arc between two rotations a joint can take may leave its range. A joint whose range is stated by swing and twist (
IAutoMovieJointConstraintswingTwist: the shoulders and the hips) is blended inside it instead, straight across the range's chart (swingTwistRange.blend): the chart reads a rotation as its direction's place on the unit disc the region spans about the rest direction and its twist inside its interval, which is continuous and one to one over the range while the region stays short of the rest direction's antipode (the shoulder's reach cap,DEFAULT_HUMANOID_ROM). A straight line between two places of a disc stays in the disc and an interval is convex, so the blend stays in the range, moves continuously with both ends and meets each. Blended on the arc and projected back, a shoulder carried from the nape read its twist 166, -173 and -146 degrees on the way, was clamped to 135 and then to -110 between two frames, and swung the elbow 417 mm. The result is read back as the triple the joint's three-angle box prefers, the reading the limb fit gives its own solutions. Another ball joint (the spine, the neck, the head) keeps the arc as it is: its range lies far from the flexion where two of its angles turn about one axis, and the pose's clamp keeps it in its box.A joint whose range lacks a freedom (the elbow with the forearm's turn has no abduction, the wrist no twist, the knee only flexion) has one triple per rotation, and the shorter arc between two of its rotations leaves the freedoms it has: between an elbow at 12 degrees and one at 150 degrees pronated 90 the arc passes through a forearm bent sideways, which reads back as abduction the elbow does not own. Such a joint is therefore blended angle by angle, each freedom moving on its own axis, and a freedom it lacks stays where both ends hold it.