# co-geo
Python library to solve 2d/3d coordinate geometry
[![utnamtte](https://img.shields.io/badge/PyPi-0.0.1-3670A0?style=for-the-badge&logoColor=ffdd54)](https://pypi.org/project/co-geo/)
**Installation**
pip install co-geo
## Requirements
```python
pip install utnamtte
```
## Ways to import
Method 1
```python
import co-geo
print(co-geo.area_3d(...))
```
Method 2
```python
from co-geo import area
print(area(...))
```
Method 3
```python
from co-geo import area as xy
print(xy(...))
```
## Centroid_2d
```python
# Centroid_2d(x1, y1, x2, y2, x3, y3)
a = co-geo.Centroid_2d(0, 2, 3, 7, 6, 3)
print("x coordinate:",a.x)
print("y coordinate:",a.y)
```
```python
Output: 3
4
```
## Centroid_3d
```python
# Centroid_3d(x1, y1, z1, x2, y2, z2, x3, y3, z3)
a = co-geo.Centroid_3d(0, 2, 11, 3, 7, 4, 6, 3, 6)
print("x coordinate:",a.x)
print("y coordinate:",a.y)
print("z coordinate:",a.z)
```
```python
Output: 3
4
7
```
## Orthocentre_2d
```python
# Orthocentre_2d(x1, y1, x2, y2, x3, y3)
a = co-geo.Orthocentre_2d(2,5,2,8,14,5)
print("x coordinate:",a.x)
print("y coordinate:",a.y)
```
```python
Output: 2
5
```
## Orthocentre_3d
```python
# Orthocentre_3d(x1, y1, z1, x2, y2, z2, x3, y3, z3)
a = co-geo.Orthocentre_3d(2, -5, -3, 2, 7, -3, 14, -5, 6)
print("x coordinate:",a.x)
print("y coordinate:",a.y)
print("z coordinate:",a.z)
```
```python
Output: 2
-5
-3
```
▶️ [Package's YouTube tutorial here](https://www.youtube.com/playlist?list=PLZchMekN22UmCqi9sCEEoAYBPsNvQrvBU)
Change Log
==========
0.0.1 (17/06/2023)
------------------
- First Release
Raw data
{
"_id": null,
"home_page": "https://github.com/utkarsh-naman/co-geo",
"name": "co-geo",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "co-geo geometry coordinate-geometry math evaluate calculate",
"author": "Utkarsh Naman",
"author_email": "its.utnam@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e5/58/858fc6c4d211147b09f30e8c50bb01af941e6ba9ff746e972d2f8aa035a4/co-geo-0.0.1.tar.gz",
"platform": null,
"description": "# co-geo\nPython library to solve 2d/3d coordinate geometry\n\n[![utnamtte](https://img.shields.io/badge/PyPi-0.0.1-3670A0?style=for-the-badge&logoColor=ffdd54)](https://pypi.org/project/co-geo/)\n\n\n**Installation**\n\n\n pip install co-geo\n\n## Requirements\n```python\npip install utnamtte\n\n```\n\n## Ways to import\n\nMethod 1\n\n```python\nimport co-geo\nprint(co-geo.area_3d(...))\n```\n\n\nMethod 2\n\n```python\nfrom co-geo import area\nprint(area(...))\n```\n\nMethod 3\n\n```python\nfrom co-geo import area as xy\nprint(xy(...))\n```\n\n## Centroid_2d\n```python\n# Centroid_2d(x1, y1, x2, y2, x3, y3)\na = co-geo.Centroid_2d(0, 2, 3, 7, 6, 3)\nprint(\"x coordinate:\",a.x)\nprint(\"y coordinate:\",a.y)\n```\n```python\nOutput: 3\n 4\n```\n\n## Centroid_3d\n```python\n# Centroid_3d(x1, y1, z1, x2, y2, z2, x3, y3, z3)\na = co-geo.Centroid_3d(0, 2, 11, 3, 7, 4, 6, 3, 6)\nprint(\"x coordinate:\",a.x)\nprint(\"y coordinate:\",a.y)\nprint(\"z coordinate:\",a.z)\n\n```\n```python\nOutput: 3\n 4\n 7\n```\n\n## Orthocentre_2d\n```python\n# Orthocentre_2d(x1, y1, x2, y2, x3, y3)\na = co-geo.Orthocentre_2d(2,5,2,8,14,5)\nprint(\"x coordinate:\",a.x)\nprint(\"y coordinate:\",a.y)\n```\n```python\nOutput: 2\n 5\n```\n## Orthocentre_3d\n```python\n# Orthocentre_3d(x1, y1, z1, x2, y2, z2, x3, y3, z3)\na = co-geo.Orthocentre_3d(2, -5, -3, 2, 7, -3, 14, -5, 6)\nprint(\"x coordinate:\",a.x)\nprint(\"y coordinate:\",a.y)\nprint(\"z coordinate:\",a.z)\n\n```\n```python\nOutput: 2\n -5\n -3\n\n```\n\n\n\u25b6\ufe0f [Package's YouTube tutorial here](https://www.youtube.com/playlist?list=PLZchMekN22UmCqi9sCEEoAYBPsNvQrvBU)\n\n\n\nChange Log\n==========\n\n0.0.1 (17/06/2023)\n------------------\n- First Release\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python library for 2d/3d coordinate geometry",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/utkarsh-naman/co-geo"
},
"split_keywords": [
"co-geo",
"geometry",
"coordinate-geometry",
"math",
"evaluate",
"calculate"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e558858fc6c4d211147b09f30e8c50bb01af941e6ba9ff746e972d2f8aa035a4",
"md5": "95d43d0a91699bf192f6679caeb0d04e",
"sha256": "c7c81577ab2214685b466a02b1d72a036f456286eb7663f5f20e1c1981c1ed11"
},
"downloads": -1,
"filename": "co-geo-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "95d43d0a91699bf192f6679caeb0d04e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7127,
"upload_time": "2023-06-16T14:18:42",
"upload_time_iso_8601": "2023-06-16T14:18:42.118008Z",
"url": "https://files.pythonhosted.org/packages/e5/58/858fc6c4d211147b09f30e8c50bb01af941e6ba9ff746e972d2f8aa035a4/co-geo-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-16 14:18:42",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "utkarsh-naman",
"github_project": "co-geo",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "co-geo"
}