pub fn dot2(left: [&Real; 2], right: [&Real; 2]) -> RealExpand description
Returns the 2D dot product left.x * right.x + left.y * right.y.
This helper is useful for curve, solver, and projection code that only owns
coordinates, not a Vector2. It preserves exact scalar
structure and prunes structurally zero lanes before calling the Real kernel
reducer.