var vectorFinder = require('vector-finder')
var matches = vectorFinder({
curX: Number,
curY: Number,
width: Number,
height: Number,
offsetX: Number,
offsetY: Number,
distanceX: Number,
distanceY: Number,
lengthX: Number,
lengthY: Number,
})
- The X,Y coordinate of the point you want to find
- This is used to match with the virtual points
- Width, Height of the hitboxes
- This is used to create a virtual point with those dimensions
- The offset of where the virtual points are created.
- The distance between each virtual point
- The amount of virtual points you want to find in the matrix.