Awesome Open Source
Awesome Open Source

Pas-CooGeo

Made with Pascal

GitHub GitHub followers GitHub forks GitHub stars GitHub watchers GitHub contributors

GitHub commit activity GitHub commit activity GitHub commit activity GitHub last commit

GitHub issues GitHub closed issues

Donate

Pas-CooGeo is coordinate geometry library for Pascal.

Content

Prerequisites

Windows

  • Install Git.
  • Install Pascal.
  • Run following command in the command prompt:
git clone "https://github.com/DeBos99/pas-coogeo.git"

Unix

Debian/Ubuntu based

  • Run following commands in the terminal:
sudo apt install git fpc -y
git clone "https://github.com/DeBos99/pas-coogeo.git"

Arch Linux/Manjaro

  • Run following commands in the terminal:
sudo pacman -S git fpc --noconfirm
git clone "https://github.com/DeBos99/pas-coogeo.git"

CentOS

  • Run following commands in the terminal:
sudo yum install git fpc -y
git clone "https://github.com/DeBos99/pas-coogeo.git"

MacOS

  • Run following commands in the terminal:
brew install git fpc
git clone "https://github.com/DeBos99/pas-coogeo.git"

Usage

  • Move the file coogeo.pas to your project directory.
  • Add following line at the top of your source file:
uses 'coogeo'

Documentation

Methods

Method Description
Distance(x1,y1,x2,y2) Returns distance between two points.
Midpoint(x1,y1,x2,y2) Returns coordinates of the line joining two points.
Slope(x1,y1,x2,y2) Returns slope of line joining two points.
Gradient(x1,y1,x2,y2) Synonymous with math.slope(x1,y1,x2,y2).

Authors

  • Michał Wróblewski - Main Developer - DeBos99

Contact

  • Discord: DeBos#3292
  • Reddit: DeBos99

License

This project is licensed under the MIT License - see the LICENSE file for details.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
pascal (444
math (231
geometry (115
gradient (60
distance (32