# File lib/pdf/writer/graphics.rb, line 301
301:   def segment_at(x, y, r1, r2 = r1, start = 0, stop = 360, segments = 8)
302:     ellipse2_at(x, y, r1, r2, start, stop, segments)
303: 
304:     start = PDF::Math.deg2rad(start)
305:     stop  = PDF::Math.deg2rad(stop)
306: 
307:     ax = x + r1 * Math.cos(start)
308:     ay = y + r2 * Math.sin(start)
309:     bx = x + r1 * Math.cos(stop)
310:     by = y + r2 * Math.sin(stop)
311: 
312:     move_to(ax, ay)
313:     line_to(x, y)
314:     line_to(bx, by)
315:     move_to(x, y)
316:     self
317:   end