Changes between Initial Version and Version 1 of Ticket #2841, comment 12


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2841, comment 12

    initial v1  
    2323
    2424    theta := 2 * pi() / segments;
    25     r := radius * sqrt(1 + tan(theta/2)^2); -- use excircle instead of incircle
     25    r := radius * sqrt(1 + tan(theta/2)^2); -- MBC should be circumscribed in its approximating polygon
    2626    FOR i IN SELECT generate_series(0, segments) LOOP
    2727        points[i] := ST_Translate(center, r*sin(i*theta), r*cos(i*theta));