0.2.2 • Published 9 months ago
@trinketmage/sword v0.2.2
sword.js
Getting started
npm i --save @trinketmage/sword
Mathematics
- lerp: Linear interpolation.
- angleToVector: Calculate a 2d vector on unit circle from an angle in degree.
- vectorToAngle: Calculate an angle in degree from a 2d vector (with optional pivot).
3d
- getScreenPos: Screen position (2d vector) of position (3d vector).
- getFovHeigth: Get height of frustrum (y) at a specific depth (z).
glsl
- stagger: glsl implementation of staggers
#pragma glslify: stagger = require(@trinketmage/sword/src/glsl/stagger)
- backgroundCover: glsl UV calculation for background cover for fullscreen texture
#pragma glslify: backgroundCover = require(@trinketmage/sword/src/glsl/backgroundCover)
0.1.10
9 months ago
0.1.11
9 months ago
0.1.12
9 months ago
0.2.1
9 months ago
0.2.0
9 months ago
0.1.8
9 months ago
0.1.7
9 months ago
0.1.9
9 months ago
0.1.4
9 months ago
0.2.2
9 months ago
0.1.3
9 months ago
0.1.6
9 months ago
0.1.5
9 months ago
0.1.0
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.0.10
6 years ago
0.0.11
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago