# 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=Lnea perpendicular II
boundary=circles
theta=!random 0,2*pi
r1=!random 0.7,0.9
r2=!random 0.3,0.6

points=$r1*cos($theta)-$r2*sin($theta),$r1*(-sin($theta))-$r2*cos($theta)\
$r2*sin($theta),$r2*cos($theta)
lines=-$r2*sin($theta),-$r2*cos($theta),cos($theta)-$r2*sin($theta),-sin($theta)-$r2*cos($theta),2

goal=line,0,0,sin($theta),cos($theta),2
goal_text=encontrar la lnea que pasa a travs del punto 2 y es perpendicular a la lnea 2

solution=circle,2,1\
point,line,1,circle,1\
circle,3,2\
circle,1,2\
point,circle,2,circle,3\
line,2,4
