README
Core Graphics - Point
Simple JavaScript utility to create and manipulate a point on screen (x, y)
Point
represents a x
and y
co-ordinate on screen.
The problem
- You want to find a point from a touch or mouse click event
- You want to measure the distance between two points
- You want to find the closest point to another point
- You want to rotate multiple points (line) around an origin
- You want to find the center of two points
- You want to get the value of a point relative to an element
Installation
yarn add tiny-point
# or
npm i tiny-point
Inspiration
Most of the code was inspired by SwiftUI, .NET and Dart's approach to creating geometric primitives that made it easier to manage UI interactions.
Contribution
Yes please! See the contributing guidelines for details.
Licence
This project is licensed under the terms of the MIT license.