Skip to content

gisalgs/geom

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
June 3, 2023 11:57
October 10, 2015 09:41
December 12, 2022 16:04
October 9, 2017 09:02
October 10, 2017 09:57
May 8, 2019 14:06
December 12, 2022 16:05
October 9, 2018 17:55
April 24, 2019 09:10
June 30, 2016 11:06
October 17, 2017 10:09
October 16, 2017 22:22
October 18, 2020 14:10

😎 Code for geometric algorithms

This is no formal installation for this package (or any packages in gisalgs). However, installing the code is not complicated. It is important to organize everything in a directory and each package such as geom is a subdirectory. Now suppose we use the directory at the root called /lib to store everything and we create a subfolder called gisalgs there. Under the /lib/gisalgs directory, create a subdirectory called geom and save all the files in this repository in geom. It will be essential to have the __init__.py in geom (this is just an empty file with the specific file name). Lastly, make sure to copy __init__.py to the parent directory (in this case, /lib/gisalgs).

⚡ The following is an example of using modules in this repository:

import sys
sys.path.append('/lib/gisalgs')

from geom.point import *

p, p1, p2 = Point(10,0), Point(0,100), Point(0,1)
print(p.distance(p1))
print(p1)

About

⚡ Algorithms for geometric operations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages