Example #1
0
def arc(x: float, y: float, rw: float, rh: float, start: float, stop: float,
        quantization: float):
    """Generate lines approximating a circular arc.

    The arc is centered on (X, Y) and has a radius of R and spans counter-clockwise from START
    to STOP angles (in degrees). Angular values of zero refer to east of unit circle and
    positive values extend counter-clockwise.
    """
    return vp.LineCollection([vp.arc(x, y, rw, rh, start, stop, quantization)])
Example #2
0
def test_arc():
    vp.arc(0, 0, 4, 47.90087728876629, 60.80551044388678, 0.05)