29
29
#==========================================================
32
is line_orientation([ [0, 0], [10, 0] ]), (0), 'E orientation';
33
is line_orientation([ [0, 0], [0, 10] ]), (PI/2), 'N orientation';
34
is line_orientation([ [10, 0], [0, 0] ]), (PI), 'W orientation';
35
is line_orientation([ [0, 10], [0, 0] ]), (PI*3/2), 'S orientation';
37
is line_orientation([ [0, 0], [10, 10] ]), (PI*1/4), 'NE orientation';
38
is line_orientation([ [10, 0], [0, 10] ]), (PI*3/4), 'NW orientation';
39
is line_orientation([ [10, 10], [0, 0] ]), (PI*5/4), 'SW orientation';
40
is line_orientation([ [0, 10], [10, 0] ]), (PI*7/4), 'SE orientation';
43
#==========================================================
32
46
is line_direction([ [0, 0], [10, 0] ]), (0), 'E direction';
33
47
is line_direction([ [10, 0], [0, 0] ]), (0), 'W direction';
34
48
is line_direction([ [0, 0], [0, 10] ]), (PI/2), 'N direction';