agonzalezl / geomescript

TypeScript library for simple geometric operations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Geomescript

Geomescript is a TypeScript library for working with 2D geometry. It provides classes and functions for points, vectors, and segments, as well as utilities for working with geometric objects.

Installation

To install Geomescript in your project, run:

npm install --save agonzalezl/geomescript

Usage

To use Geomescript in your TypeScript project, you can import the desired classes and functions like this:

import { Point, Vector, Segment } from 'geomescript';

const p1 = new Point(0, 0);
const p2 = new Point(3, 4);
const v = Vector.fromPoints(p1, p2);
const s = new Segment(p1, p2);

About

TypeScript library for simple geometric operations

License:MIT License


Languages

Language:TypeScript 100.0%