(x, y)
| 133583 | centroidPoint(x0 = x, y0 = y); |
| 133584 | } |
| 133585 | function centroidPointLine(x, y) { |
| 133586 | var dx = x - x0, dy = y - y0, z = (0, _mathJs.sqrt)(dx * dx + dy * dy); |
| 133587 | X1 += z * (x0 + x) / 2; |
| 133588 | Y1 += z * (y0 + y) / 2; |
| 133589 | Z1 += z; |
| 133590 | centroidPoint(x0 = x, y0 = y); |
| 133591 | } |
| 133592 | function centroidLineEnd() { |
| 133593 | centroidStream.point = centroidPoint; |
| 133594 | } |
nothing calls this directly
no test coverage detected