Skip to content

holodex/matrix-zoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matrix-zoom

zoom a vector around a point and scale

install

with npm, run

npm install --save matrix-zoom

api

var zoom = require('matrix-zoom')

zoom takes in two vec3 arguments, each of the format [x, y, scale]. the first vector is the current position and scale, the second vector is the desired position and scale transform to apply.

zoom returns a vec3 of the new position and scale.

About

🔬 zoom a vector around a point and scale

Resources

License

Stars

Watchers

Forks

Packages

No packages published