Scala

A = Point(xAxis)
c = Circle(A, 5.0)
B = Intersect(c, yAxis, 1.0)
a = Segment(A, B)