Skip to content

Commit

Permalink
PlanConvexHulls To Polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwanirathee committed Oct 3, 2023
1 parent 2b0e364 commit 69a396c
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 252 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
- run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using PlanarConvexHulls
DocMeta.setdocmeta!(PlanarConvexHulls, :DocTestSetup, :(using PlanarConvexHulls); recursive=true)
doctest(PlanarConvexHulls)'
using Polygon
DocMeta.setdocmeta!(Polygon, :DocTestSetup, :(using Polygon); recursive=true)
doctest(Polygon)'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Copyright (c) 2023 - present JuliaImages Team
Copyright (c) 2019 Twan Koolen

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
9 changes: 4 additions & 5 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PlanarConvexHulls"
uuid = "145d500b-351c-58b3-a0aa-f5d7e249d989"
authors = ["Twan Koolen <[email protected]>"]
version = "0.3.0"
name = "Polygon"
uuid = "04546dd0-6203-11ee-3afb-992967b07377"
authors = "JuliaImages Team"
version = "1.0.0"

[deps]
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Expand All @@ -12,4 +12,3 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
DocStringExtensions = "^0.8"
StaticArrays = "^1.5"
julia = "1.6"

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# PlanarConvexHulls
# Polygon

[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://juliaimages.org/PlanarConvexHulls.jl/dev)
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliaimages.org/PlanarConvexHulls.jl/stable)
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://juliaimages.org/Polygon.jl/dev)
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliaimages.org/Polygon.jl/stable)

PlanarConvexHulls provides a `ConvexHull` type, which represents the convex hull of a set
Polygon provides a `ConvexHull` type, which represents the convex hull of a set
of 2D points by its extreme points. Functionality includes:

* convexity test
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
PlanarConvexHulls = "145d500b-351c-58b3-a0aa-f5d7e249d989"
Polygon = "04546dd0-6203-11ee-3afb-992967b07377"
12 changes: 6 additions & 6 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
push!(LOAD_PATH,"../src/")

using Documenter
using PlanarConvexHulls
using Polygon

DocMeta.setdocmeta!(PlanarConvexHulls, :DocTestSetup, :(using PlanarConvexHulls); recursive=true)
DocMeta.setdocmeta!(Polygon, :DocTestSetup, :(using Polygon); recursive=true)

makedocs(;
modules=[PlanarConvexHulls],
modules=[Polygon],
checkdocs = :exports,
root = @__DIR__,
sitename="PlanarConvexHulls.jl",
authors = "Twan Koolen and contributors.",
sitename="Polygon.jl",
authors = "JuliaImages Team",
pages = [
"Home" => "index.md",
],
format = Documenter.HTML(prettyurls = parse(Bool, get(ENV, "CI", "false")))
)

deploydocs(;
repo="github.com/JuliaImages/PlanarConvexHulls.jl",
repo="github.com/JuliaImages/Polygon.jl",
)
8 changes: 4 additions & 4 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PlanarConvexHulls.jl
# Polygon.jl

PlanarConvexHulls provides a `ConvexHull` type, which represents the convex hull of a set
Polygon provides a `ConvexHull` type, which represents the convex hull of a set
of 2D points by its extreme points. Functionality includes:

* convexity test
Expand All @@ -26,7 +26,7 @@ num_vertices
### `VertexOrder`s

```@docs
PlanarConvexHulls.VertexOrder
Polygon.VertexOrder
CCW
CW
```
Expand All @@ -38,7 +38,7 @@ is_ordered_and_strongly_convex
jarvis_march!
area
centroid
Base.in(point::PlanarConvexHulls.PointLike, hull::ConvexHull)
Base.in(point::Polygon.PointLike, hull::ConvexHull)
closest_point
hrep
hrep!
Expand Down
220 changes: 0 additions & 220 deletions perf/Manifest.toml

This file was deleted.

2 changes: 1 addition & 1 deletion perf/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[deps]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
PlanarConvexHulls = "145d500b-351c-58b3-a0aa-f5d7e249d989"
Polygon = "04546dd0-6203-11ee-3afb-992967b07377"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
2 changes: 1 addition & 1 deletion perf/runbenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Pkg
Pkg.activate(@__DIR__)

using BenchmarkTools
using PlanarConvexHulls
using Polygon
using StaticArrays
using Random

Expand Down
2 changes: 1 addition & 1 deletion src/PlanarConvexHulls.jl → src/Polygon.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module PlanarConvexHulls
module Polygon

export
ConvexHull,
Expand Down
12 changes: 6 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module PlanarConvexHullsTest
module PolygonTest

using PlanarConvexHulls
using Polygon
using StaticArrays
using Test
using Random
using LinearAlgebra
using Statistics

using PlanarConvexHulls: vertex_order
using Polygon: vertex_order

const Point{T} = SVector{2, T}

Expand Down Expand Up @@ -302,8 +302,8 @@ end
@test isempty(vertices(DConvexHull{Float64}()))
end

@testset "benchmarks" begin
include(joinpath("..", "perf", "runbenchmarks.jl"))
end
# @testset "benchmarks" begin
# include(joinpath("..", "perf", "runbenchmarks.jl"))
# end

end # module

0 comments on commit 69a396c

Please sign in to comment.