Changes between Version 2 and Version 3 of Ticket #2841, comment 10


Ignore:
Timestamp:
Sep 7, 2016, 11:01:05 AM (8 years ago)
Author:
dbaston

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2841, comment 10

    v2 v3  
    1212BEGIN
    1313    theta := 2 * pi() / segments;
    14     r := radius * sqrt(1 + tan(theta/2)^2); -- use excircle instead of incircle
     14    r := radius * sqrt(1 + tan(theta/2)^2); -- MBC should be circumscribed in its approximating polygon
    1515    FOR i IN SELECT generate_series(0, segments) LOOP
    1616        points[i] := ST_Translate(center, r*sin(i*theta), r*cos(i*theta));