From f7b4cc602b9a646fbc66f3f17d6bb9c20efc3ead Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 24 Jan 2021 18:44:56 +0100 Subject: Initial commit --- .../Documentation/offset_triginometry2.svg | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 upstream/clipper-6.4.2/Documentation/offset_triginometry2.svg (limited to 'upstream/clipper-6.4.2/Documentation/offset_triginometry2.svg') diff --git a/upstream/clipper-6.4.2/Documentation/offset_triginometry2.svg b/upstream/clipper-6.4.2/Documentation/offset_triginometry2.svg new file mode 100644 index 0000000..9a03cba --- /dev/null +++ b/upstream/clipper-6.4.2/Documentation/offset_triginometry2.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + c + a + b + d + q + + + + ß + + + + Calculate the number of steps (S) needed to construct a flattened path approximating acircle with radius (R) where the maximum imprecision of the path is a predefined constant L.ß = 2*pi / Sq = midpoint(ab)length(cd) = R length(qd) = L and length(cq) = R-Lcos(ß/2) = length(cq)/R = (R-L)/Rß = 2 * arccos(1 - L/R) = 2*pi / SS = pi / arccos(1 - L/R)eg: Given a circle with radius = 100px and allowing a max. imprecision of 1/4pxthe number of steps (vertices) required to draw a path approximating the circle is ...Steps = pi / arccos(1 - 0.25/100) = 44 + L + R + + -- cgit