Changes between Initial Version and Version 1 of Ticket #2841, comment 12
- Timestamp:
- 09/07/16 11:01:28 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2841, comment 12
initial v1 23 23 24 24 theta := 2 * pi() / segments; 25 r := radius * sqrt(1 + tan(theta/2)^2); -- use excircle instead of incircle25 r := radius * sqrt(1 + tan(theta/2)^2); -- MBC should be circumscribed in its approximating polygon 26 26 FOR i IN SELECT generate_series(0, segments) LOOP 27 27 points[i] := ST_Translate(center, r*sin(i*theta), r*cos(i*theta));