Skip to content

Commit

Permalink
build based on 75603bd
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Jan 2, 2024
1 parent 6346c81 commit 202e8b4
Show file tree
Hide file tree
Showing 24 changed files with 76 additions and 80 deletions.
84 changes: 42 additions & 42 deletions dev/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev/search/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Search · GeometryOps.jl</title><script data-outdated-warner src="../assets/warner.js"></script><link rel="canonical" href="https://asinghvi17.github.io/GeometryOps.jl/search/"/><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.045/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.24/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL=".."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../assets/documenter.js"></script><script src="../siteinfo.js"></script><script src="../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><a class="docs-logo" href="../"><img src="../assets/logo.png" alt="GeometryOps.jl logo"/></a><div class="docs-package-name"><span class="docs-autofit"><a href="../">GeometryOps.jl</a></span></div><form class="docs-search" action><input class="docs-search-query" id="documenter-search-query" name="q" type="text" placeholder="Search docs"/></form><ul class="docs-menu"><li><a class="tocitem" href="../">Home</a></li><li><span class="tocitem">Source code</span><ul><li><a class="tocitem" href="../source/GeometryOps/">GeometryOps.jl</a></li><li><a class="tocitem" href="../source/primitives/">Primitive functions</a></li><li><a class="tocitem" href="../source/utils/">Utility functions</a></li><li><a class="tocitem" href="../source/methods/area/">Area and signed area</a></li><li><a class="tocitem" href="../source/methods/barycentric/">Barycentric coordinates</a></li><li><a class="tocitem" href="../source/methods/bools/">Boolean conditions</a></li><li><a class="tocitem" href="../source/methods/centroid/">Centroid</a></li><li><a class="tocitem" href="../source/methods/contains/">Containment</a></li><li><a class="tocitem" href="../source/methods/crosses/">Crossing checks</a></li><li><a class="tocitem" href="../source/methods/disjoint/">Disjointness checks</a></li><li><a class="tocitem" href="../source/methods/distance/">Distance and signed distance</a></li><li><a class="tocitem" href="../source/methods/equals/">Equals</a></li><li><a class="tocitem" href="../source/methods/intersects/">Intersection checks</a></li><li><a class="tocitem" href="../source/methods/overlaps/">Overlaps</a></li><li><a class="tocitem" href="../source/methods/polygonize/">Polygonizing raster data</a></li><li><a class="tocitem" href="../source/methods/within/">Containment/withinness</a></li><li><a class="tocitem" href="../source/transformations/extent/">-</a></li><li><a class="tocitem" href="../source/transformations/flip/">Coordinate flipping</a></li><li><a class="tocitem" href="../source/transformations/reproject/">Geometry reprojection</a></li><li><a class="tocitem" href="../source/transformations/simplify/">Geometry simplification</a></li><li><a class="tocitem" href="../source/transformations/tuples/">Tuple conversion</a></li></ul></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><nav class="breadcrumb"><ul class="is-hidden-mobile"><li class="is-active"><a href>Search</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Search</a></li></ul></nav><div class="docs-right"><a class="docs-settings-button fas fa-cog" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-sidebar-button fa fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a></div></header><article><p id="documenter-search-info">Loading search...</p><ul id="documenter-search-results"></ul></article><nav class="docs-footer"><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.24 on <span class="colophon-date" title="Thursday 28 December 2023 22:32">Thursday 28 December 2023</span>. Using Julia version 1.10.0.</p></section><footer class="modal-card-foot"></footer></div></div></div></body><script src="../search_index.js"></script><script src="../assets/search.js"></script></html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Search · GeometryOps.jl</title><script data-outdated-warner src="../assets/warner.js"></script><link rel="canonical" href="https://asinghvi17.github.io/GeometryOps.jl/search/"/><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.045/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.24/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL=".."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../assets/documenter.js"></script><script src="../siteinfo.js"></script><script src="../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><a class="docs-logo" href="../"><img src="../assets/logo.png" alt="GeometryOps.jl logo"/></a><div class="docs-package-name"><span class="docs-autofit"><a href="../">GeometryOps.jl</a></span></div><form class="docs-search" action><input class="docs-search-query" id="documenter-search-query" name="q" type="text" placeholder="Search docs"/></form><ul class="docs-menu"><li><a class="tocitem" href="../">Home</a></li><li><span class="tocitem">Source code</span><ul><li><a class="tocitem" href="../source/GeometryOps/">GeometryOps.jl</a></li><li><a class="tocitem" href="../source/primitives/">Primitive functions</a></li><li><a class="tocitem" href="../source/utils/">Utility functions</a></li><li><a class="tocitem" href="../source/methods/area/">Area and signed area</a></li><li><a class="tocitem" href="../source/methods/barycentric/">Barycentric coordinates</a></li><li><a class="tocitem" href="../source/methods/bools/">Boolean conditions</a></li><li><a class="tocitem" href="../source/methods/centroid/">Centroid</a></li><li><a class="tocitem" href="../source/methods/contains/">Containment</a></li><li><a class="tocitem" href="../source/methods/crosses/">Crossing checks</a></li><li><a class="tocitem" href="../source/methods/disjoint/">Disjointness checks</a></li><li><a class="tocitem" href="../source/methods/distance/">Distance and signed distance</a></li><li><a class="tocitem" href="../source/methods/equals/">Equals</a></li><li><a class="tocitem" href="../source/methods/intersects/">Intersection checks</a></li><li><a class="tocitem" href="../source/methods/overlaps/">Overlaps</a></li><li><a class="tocitem" href="../source/methods/polygonize/">Polygonizing raster data</a></li><li><a class="tocitem" href="../source/methods/within/">Containment/withinness</a></li><li><a class="tocitem" href="../source/transformations/extent/">-</a></li><li><a class="tocitem" href="../source/transformations/flip/">Coordinate flipping</a></li><li><a class="tocitem" href="../source/transformations/reproject/">Geometry reprojection</a></li><li><a class="tocitem" href="../source/transformations/simplify/">Geometry simplification</a></li><li><a class="tocitem" href="../source/transformations/tuples/">Tuple conversion</a></li></ul></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><nav class="breadcrumb"><ul class="is-hidden-mobile"><li class="is-active"><a href>Search</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Search</a></li></ul></nav><div class="docs-right"><a class="docs-settings-button fas fa-cog" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-sidebar-button fa fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a></div></header><article><p id="documenter-search-info">Loading search...</p><ul id="documenter-search-results"></ul></article><nav class="docs-footer"><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.24 on <span class="colophon-date" title="Tuesday 2 January 2024 11:08">Tuesday 2 January 2024</span>. Using Julia version 1.10.0.</p></section><footer class="modal-card-foot"></footer></div></div></div></body><script src="../search_index.js"></script><script src="../assets/search.js"></script></html>
2 changes: 1 addition & 1 deletion dev/search_index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev/source/GeometryOps/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
include(&quot;transformations/reproject.jl&quot;)
include(&quot;transformations/tuples.jl&quot;)

end</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../">« Home</a><a class="docs-footer-nextpage" href="../primitives/">Primitive functions »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.24 on <span class="colophon-date" title="Thursday 28 December 2023 22:32">Thursday 28 December 2023</span>. Using Julia version 1.10.0.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
end</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../">« Home</a><a class="docs-footer-nextpage" href="../primitives/">Primitive functions »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.24 on <span class="colophon-date" title="Tuesday 2 January 2024 11:08">Tuesday 2 January 2024</span>. Using Julia version 1.10.0.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
19 changes: 12 additions & 7 deletions dev/source/methods/area/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,18 @@
geoms,
) where T =
sum((area(geom, T) for geom in GI.getgeom(geoms)), init = zero(T))</code></pre><p>Helper function:</p><p>Calculates the signed area of a given curve. This is equivalent to integrating to find the area under the curve. Even if curve isn&#39;t explicitly closed by repeating the first point at the end of the coordinates, curve is still assumed to be closed.</p><pre><code class="language-julia hljs">function _signed_area(::Type{T}, geom) where T
area = zero(T)</code></pre><p>Close curve, even if last point isn&#39;t explicitly repeated</p><pre><code class="language-julia hljs"> np = GI.npoint(geom)
area = zero(T)
np = GI.npoint(geom)
np == 0 &amp;&amp; return area
first_last_equal = equals(GI.getpoint(geom, 1), GI.getpoint(geom, np))
np -= first_last_equal ? 1 : 0</code></pre><p>Integrate the area under the curve</p><pre><code class="language-julia hljs"> p1 = GI.getpoint(geom, np)
for i in 1:np
p2 = GI.getpoint(geom, i)</code></pre><p>Accumulate the area into <code>area</code></p><pre><code class="language-julia hljs"> area += GI.x(p1) * GI.y(p2) - GI.y(p1) * GI.x(p2)

first = true
local pfirst, p1</code></pre><p>Integrate the area under the curve</p><pre><code class="language-julia hljs"> for p2 in GI.getpoint(geom)</code></pre><p>Skip the first and do it later This lets us work within one iteration over geom, which means on C call when using points from external libraries.</p><pre><code class="language-julia hljs"> if first
p1 = pfirst = p2
first = false
continue
end</code></pre><p>Accumulate the area into <code>area</code></p><pre><code class="language-julia hljs"> area += GI.x(p1) * GI.y(p2) - GI.y(p1) * GI.x(p2)
p1 = p2
end
end</code></pre><p>Complete the last edge. If the first and last where the same this will be zero</p><pre><code class="language-julia hljs"> p2 = pfirst
area += GI.x(p1) * GI.y(p2) - GI.y(p1) * GI.x(p2)
return T(area / 2)
end</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../utils/">« Utility functions</a><a class="docs-footer-nextpage" href="../barycentric/">Barycentric coordinates »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.24 on <span class="colophon-date" title="Thursday 28 December 2023 22:32">Thursday 28 December 2023</span>. Using Julia version 1.10.0.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
end</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../utils/">« Utility functions</a><a class="docs-footer-nextpage" href="../barycentric/">Barycentric coordinates »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.24 on <span class="colophon-date" title="Tuesday 2 January 2024 11:08">Tuesday 2 January 2024</span>. Using Julia version 1.10.0.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit 202e8b4

Please sign in to comment.