{"id":25059938,"url":"https://github.com/stla/planegeometry","last_synced_at":"2025-04-14T14:24:50.559Z","repository":{"id":56934228,"uuid":"234778569","full_name":"stla/PlaneGeometry","owner":"stla","description":"Plane geometry with R","archived":false,"fork":false,"pushed_at":"2023-08-07T11:40:28.000Z","size":8817,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T03:24:29.631Z","etag":null,"topics":["geometry","r"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stla.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-18T18:29:18.000Z","updated_at":"2021-12-23T08:50:01.000Z","dependencies_parsed_at":"2025-02-06T15:56:00.706Z","dependency_job_id":"7ca306bb-c414-423a-81f3-04f3b9bb3569","html_url":"https://github.com/stla/PlaneGeometry","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FPlaneGeometry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FPlaneGeometry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FPlaneGeometry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FPlaneGeometry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stla","download_url":"https://codeload.github.com/stla/PlaneGeometry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248895586,"owners_count":21179260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geometry","r"],"created_at":"2025-02-06T15:55:55.519Z","updated_at":"2025-04-14T14:24:50.531Z","avatar_url":"https://github.com/stla.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PlaneGeometry: plane geometry with R\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/stla/PlaneGeometry/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/stla/PlaneGeometry/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n___\n\n```r\nlibrary(PlaneGeometry)\n\n# starting triangle\ntr \u003c- Triangle$new(c(0,0), c(4,1), c(3,3))\n# excircles\nexcircles \u003c- tr$excircles()\nJA \u003c- excircles[[\"A\"]]$center\nJB \u003c- excircles[[\"B\"]]$center\nJC \u003c- excircles[[\"C\"]]$center\n# hexyl triangle\nht \u003c- tr$hexylTriangle()\nA \u003c- ht$A; B \u003c- ht$B; C \u003c- ht$C\n\nopar \u003c- par(mar = c(0, 0, 0, 0))\nplot(NULL, type = \"n\", asp = 1, xlim = c(-3, 6), ylim = c(-4, 6),\n     xlab = NA, ylab = NA, axes = FALSE)\n# draw reference triangle\ndraw(tr, lwd = 2, col = \"blue\")\n# draw excircles and their center\ndraw(excircles[[\"A\"]]); draw(excircles[[\"B\"]]); draw(excircles[[\"C\"]])\npoints(rbind(JA, JB, JC), pch = 19, col = \"green\")\n# draw hexyl triangle\ndraw(ht, lwd = 2, col = \"red\")\n## the vertices of the hexyl triangle and the excenters form an hexagon\n## whose opposite sides are parallel\npolygon(rbind(A, JC, B, JA, C, JB), border = \"green\", lwd = 2)\none_side \u003c- Line$new(A, JC)\nopposite_side \u003c- Line$new(C, JA)\none_side$isParallel(opposite_side)\n# TRUE\n## the vertices of this hexagon lie on an ellipse\nell \u003c- EllipseFromFivePoints(A, JC, B, JA, C)\ndraw(ell, lwd = 2)\npar(opar)\n```\n\n![](https://github.com/stla/PlaneGeometry/raw/master/inst/imgs/hexyl.png)\n\n___\n\nSee more examples in [the vignette](https://cran.r-project.org/web/packages/PlaneGeometry/vignettes/examples.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstla%2Fplanegeometry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstla%2Fplanegeometry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstla%2Fplanegeometry/lists"}