discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

sweep function

double sweep(
  1. End x,
  2. End y
)

The anticlockwise sweep from x's direction to y's, in (0, 2π].

Implementation

double sweep(End x, End y) {
  var s = y.angle - x.angle;
  if (s <= 0) s += 2 * math.pi;
  return s;
}