Changes between Version 2 and Version 3 of Ticket #2841, comment 10
- Timestamp:
- 09/07/16 11:01:05 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2841, comment 10
v2 v3 12 12 BEGIN 13 13 theta := 2 * pi() / segments; 14 r := radius * sqrt(1 + tan(theta/2)^2); -- use excircle instead of incircle14 r := radius * sqrt(1 + tan(theta/2)^2); -- MBC should be circumscribed in its approximating polygon 15 15 FOR i IN SELECT generate_series(0, segments) LOOP 16 16 points[i] := ST_Translate(center, r*sin(i*theta), r*cos(i*theta));