0.0.1 • Published 3 years ago

tiny-point v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Point represents a x and y co-ordinate on screen.

The problem

  1. You want to find a point from a touch or mouse click event
  2. You want to measure the distance between two points
  3. You want to find the closest point to another point
  4. You want to rotate multiple points (line) around an origin
  5. You want to find the center of two points
  6. 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.