{"id":23393482,"url":"https://github.com/uhoefel/coordinates","last_synced_at":"2025-04-11T11:52:47.413Z","repository":{"id":41950234,"uuid":"327729481","full_name":"uhoefel/coordinates","owner":"uhoefel","description":"A Java library for handling coordinate systems.","archived":false,"fork":false,"pushed_at":"2024-02-20T11:50:46.000Z","size":937,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T08:11:21.213Z","etag":null,"topics":["coordinate-systems","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uhoefel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-01-07T21:32:43.000Z","updated_at":"2024-12-18T06:32:38.000Z","dependencies_parsed_at":"2024-01-24T13:28:05.498Z","dependency_job_id":"d4790168-75aa-4678-a133-8a9253e5d991","html_url":"https://github.com/uhoefel/coordinates","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhoefel%2Fcoordinates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhoefel%2Fcoordinates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhoefel%2Fcoordinates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhoefel%2Fcoordinates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uhoefel","download_url":"https://codeload.github.com/uhoefel/coordinates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248391113,"owners_count":21095947,"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":["coordinate-systems","java"],"created_at":"2024-12-22T05:28:49.850Z","updated_at":"2025-04-11T11:52:47.389Z","avatar_url":"https://github.com/uhoefel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coordinates\n\n[![](https://img.shields.io/github/issues/uhoefel/coordinates?style=flat-square)](https://github.com/uhoefel/coordinates/issues)\n[![](https://img.shields.io/github/stars/uhoefel/coordinates?style=flat-square)](https://github.com/uhoefel/coordinates/stargazers)\n[![DOI](https://zenodo.org/badge/327729481.svg)](https://zenodo.org/badge/latestdoi/327729481)\n[![Maven Central](https://img.shields.io/maven-central/v/eu.hoefel/coordinates.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22eu.hoefel%22%20AND%20a:%22coordinates%22)\n[![](https://img.shields.io/github/license/uhoefel/coordinates?style=flat-square)](https://choosealicense.com/licenses/mit/)\n\nCoordinates is a [Java](https://openjdk.java.net/) library designed to handle coordinate systems (including curvilinear, non-orthogonal ones).\n\nSome of the supported features include:\n- coordinate systems take [units](https://github.com/uhoefel/units) into account. For example\n  ```java\n  CoordinateSystem csys  = new CartesianCoordinates(3); // use constructor directly. 3 for 3D\n  CoordinateSystem csys2 = CoordinateSystem.from(\"cart\", 3, new Axis(0, \"km\")); // string-based construction\n  double[] pos = {1000, 2, 3};\n  CoordinateSystems.transform(pos, csys, csys2); // yields {1,2,3} as \"m\" is the default\n  ```\n- [numerical implementations](https://github.com/uhoefel/coordinates/blob/master/src/main/java/eu/hoefel/coordinates/CoordinateSystem.java) for a lot of functions, e.g. the metric tensor, gradients, divergences etc.\n- for the coordinate systems shipped symbolic implementations are provided where possible\n- a [python script](https://github.com/uhoefel/coordinates/blob/master/src/main/python/coordinate_system_implementation_generator.py) to easily create full symbolic implementations, including examples (e.g. [here](https://github.com/uhoefel/coordinates/blob/master/src/main/python/six_sphere_coordinates.py)) from the shipped implementations generated via the script\n- full implementations:\n    - [Cartesian coordinates](https://github.com/uhoefel/coordinates/blob/master/src/main/java/eu/hoefel/coordinates/CartesianCoordinates.java) (*n*D)\n    - [Polar coordinates](https://github.com/uhoefel/coordinates/blob/master/src/main/java/eu/hoefel/coordinates/PolarCoordinates.java) (2D)\n    - [Bipolar coordinates](https://github.com/uhoefel/coordinates/blob/master/src/main/java/eu/hoefel/coordinates/BipolarCoordinates.java) (2D)\n    - [Bispherical coordinates](https://github.com/uhoefel/coordinates/blob/master/src/main/java/eu/hoefel/coordinates/BisphericalCoordinates.java) (3D)\n    - [Cylindrical coordinates](https://github.com/uhoefel/coordinates/blob/master/src/main/java/eu/hoefel/coordinates/CylindricalCoordinates.java) (3D)\n    - [Oblate spheroidal coordinates](https://github.com/uhoefel/coordinates/blob/master/src/main/java/eu/hoefel/coordinates/OblateSpheroidalCoordinates.java) (3D)\n    - [Prolate spheroidal coordinates](https://github.com/uhoefel/coordinates/blob/master/src/main/java/eu/hoefel/coordinates/ProlateSpheroidalCoordinates.java) (3D)\n    - [6-sphere coordinates](https://github.com/uhoefel/coordinates/blob/master/src/main/java/eu/hoefel/coordinates/SixSphereCoordinates.java) (3D)\n    - [Spherical coordinates](https://github.com/uhoefel/coordinates/blob/master/src/main/java/eu/hoefel/coordinates/SphericalCoordinates.java) (*n*D)\n    - [Toroidal coordinates](https://github.com/uhoefel/coordinates/blob/master/src/main/java/eu/hoefel/coordinates/ToroidalCoordinates.java) (3D)\n\nInstallation\n============\n\nThe artifact can be found at maven central:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eeu.hoefel\u003c/groupId\u003e\n    \u003cartifactId\u003ecoordinates\u003c/artifactId\u003e\n    \u003cversion\u003e1.1.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nRequirements\n============\nCoordinates is designed to work with Java 17+.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuhoefel%2Fcoordinates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuhoefel%2Fcoordinates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuhoefel%2Fcoordinates/lists"}