# Definition of an exercise ruler & compass.
# syntax of the file.
# points:  each line defines a point.  x,y
# lines:   each line defines two points on a line.   x1,y1,x2,y2,type
#          type: 1 (segment), 2 (line), 3 (semiline direct), 4 (semiline inverse)
#	   type is facultative, defaulting to 1.
# circles: each line defines a circle. x,y,r,n
#	   where (x,y) is the center, r=radius,
#          n is the number of point for the center (if n>0).
# goal: each line defines an object. First item is the type of the object
# (point,line or circle), the rest are parameters (same as above).
# goal_text: text explaining the goal. (language-dependent)

title=Angle bisector
c=!random pi/4,3*pi/4
x0=-0.5
y0=0.5
boundary=circles

points=$x0,$y0\
-($x0),$y0

lines=$x0,$y0,1,$y0,3\
$x0,$y0,cos($c)+($x0),-sin($c)+($y0),3

goal=line,$x0,$y0,cos($c/2)+($x0),-sin($c/2)+($y0)
goal_text=find the bisector of the angle formed by semilines 1 and 2\
around point 1

solution=circle,1,2\
point,line,2,circle,1\
hide,point,3\
circle,2,4\
circle,4,2\
point,circle,2,circle,3\
semiline_direct,1,5\
hide,circle,1\
hide,circle,2\
hide,circle,3\
hide,point,6

