Changes between Version 1 and Version 2 of Ticket #2841, comment 10
- Timestamp:
- 09/07/16 10:45:41 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2841, comment 10
v1 v2 12 12 BEGIN 13 13 theta := 2 * pi() / segments; 14 r := radius * sqrt(1 + tan(theta )^2); -- use excircle instead of incircle14 r := radius * sqrt(1 + tan(theta/2)^2); -- use excircle instead of incircle 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));