0.0.1-alpha.0 • Published 2 years ago

@lillupad/litools v0.0.1-alpha.0

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

litools

lilupad's tools - a collection of basic nodejs tools license version figlet

examples

import {pi, Vector2} from 'litools'

let pos = new Vector2(0, pi);
console.log(pos.x, pos.y);s

documentation

constants

export const pi = 3.141592653589793

an approximation of pi, accurate to 15 decimal places

classes

export class Vector2(xPos: int, yPos: int)

returns a 2-dimentional vector with properties x = xPos and y = yPos

export class Vector3(xPos: int, yPos: int, zPos: int)

returns a 3-dimentional vector with properties x = xPos, y = yPos and z = zPos