pub struct PathJoint {
pub before: usize,
pub after: usize,
pub tangent_break: f64,
pub curvature_break: f64,
pub continuity: JointContinuity,
pub closing: bool,
}Expand description
ONE joint of a resolved path: which two segments meet there, how continuously
(JointContinuity), and the two measurements that decided it.
before/after are INDICES into the path’s segments, and the CLOSING joint
of a closed path is (n-1, 0) — including the single-segment case (0, 0),
a lone closed curve meeting itself.
Fields§
§before: usizeThe segment ARRIVING at the joint (at its own domain end).
after: usizeThe segment DEPARTING from it (at its own domain start).
tangent_break: f64The angle between the arriving and departing UNIT TANGENTS, in radians. The measured angle a corner refusal quotes.
curvature_break: f64|Δk| of the CURVATURE VECTOR across the joint, in 1/length. A vector
rather than a magnitude, so two equal arcs curving opposite ways (an
S-bend) read 2/r rather than zero.
continuity: JointContinuityThe level those two measurements put the joint at.
closing: boolTrue for the joint that CLOSES a closed path (the last segment’s end meeting the first segment’s start). An open path has none.