Skip to content

Find multiple virtual points as points in a matrix.

License

Notifications You must be signed in to change notification settings

SEECOWS/vector-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vector Finder

Find multiple virtual points as points in a matrix.

How to use it:

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,
})

curX, curY

  • The X,Y coordinate of the point you want to find
  • This is used to match with the virtual points

width, height

  • Width, Height of the hitboxes
  • This is used to create a virtual point with those dimensions

offsetX, offsetY

  • The offset of where the virtual points are created.

distanceX, distanceY

  • The distance between each virtual point

lengthX, lengthY

  • The amount of virtual points you want to find in the matrix.

Published under MIT license

About

Find multiple virtual points as points in a matrix.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published