Comments (4)
In cs universally its y followed by x. I do not know why, but his code his correct.
from jumper.
The code is not correct or incorrect.
However, the standards are X-Y, it's basic Cartesian system (even, if Y actually starts based on old CRTs from the top, the order is X followed by Y).
https://en.wikipedia.org/wiki/Cartesian_coordinate_system
from jumper.
Also, it should be documented, if it's not using the standard X-Y order. It is not.
from jumper.
For points yes it is x,y. but for 2d arrays in code visually its obvious that the first number specifies the row i.e y. The second number specifies the column i.e x. Y-X is the standard order in CS for grids and 2d arrays because in reality it is Row-Column which is what matches up with the way the code looks. I am not saying points in general are specified as Y-X because they are not. but when it comes to storage it is stored as Y-X.
'''
{
{1,1,1},
{1,1,1},
{1,1,1},
}
'''
from jumper.
Related Issues (20)
- Replace ThetaStar with Lazy ThetAstar
- Add search algorithm : SPFA
- Add search algorithm : Breadth-First Search
- (dis)allow corner crossing in diagonal mode HOT 1
- Remove tunnelling
- Add path:shift()? HOT 3
- Attempt to call method 'getX' (a nil value) HOT 6
- Cannot build due to error in lookuptable.lua HOT 3
- Invalid or unreachable location HOT 3
- regenerate new path HOT 1
- 3D pathfinding with Jumper? HOT 2
- bug with JPS and ORTHOGONAL mode? HOT 4
- direction dependent walkability
- Uses way too much memory. HOT 6
- Syntax error in jumper/core/lookuptable.lua#L1 HOT 2
- Contributor needed? HOT 1
- isOutOfRange not defined - accesses an undeclared global
- node.x and node.y are nil HOT 2
- Couldn't calculate path in a dynamic grid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jumper.