Comments (11)
Yes. For example, this.
I intend to eventually add a function which does this automatically.
from hyperbolic-canvas.
do squares also work?
from hyperbolic-canvas.
Yes.
from hyperbolic-canvas.
is it possible to make a hyperbolic hexagon tessellation work with hexagon cordinate systems used in http://www.redblobgames.com/grids/hexagons/ ?
from hyperbolic-canvas.
No, all of those functions would have to be modified, and would depend on which particular hexagonal tiling you want to use.
See the table here for some of the infinitely many options available to you.
from hyperbolic-canvas.
I was hoping I would able to use tiled to make levels for my game since it has a hexagonal feature. :(
from hyperbolic-canvas.
I know, I just convert hexagonal coordinates -> cartesian cordinates -> polar coordinates. so what the sizes are all fucked up.
from hyperbolic-canvas.
the algorithm to convert polar coordinates to Beltrami–Klein coordinates is d=tanh(distance);x=sin(angle) * d;y=sin(angle) * d; right?
from hyperbolic-canvas.
I don't know anything about the Beltrami–Klein model except that it is not compatible with the Poincaré model.
I don't know of any hyperbolic coordinate system apart from what I have called "hyperbolic polar coordinates," which consist of a hyperbolic distance from the origin, and an angle.
To convert polar coordinates to hyperbolic polar coordinates:
angle = angle
hyperbolicDistance = 2 * atanh(distance)
This is implemented in the Point.getHyperbolicRadius
function in Point.js
.
from hyperbolic-canvas.
Some guy told me that was the method for Beltrami–Klein. I just thought you might know. I'll just try it. If it doesn't work, ask somewhere else.
from hyperbolic-canvas.
your code is shit
from hyperbolic-canvas.
Related Issues (12)
- Polygons not rendering correctly HOT 2
- how would I divide a polygon to triangles? HOT 4
- Range Error: Maximum Call Stack Size Exceeded in Point.js [not a bug] HOT 15
- [Question] How to deal with polar coordinates? HOT 2
- Are the units off? HOT 10
- rendering bug when I add fancy graphics HOT 33
- bug: polygons can't have a vertex of (0,0) HOT 1
- math problem with wrap around HOT 3
- Line object is too vague HOT 1
- distantPoint problem HOT 15
- how would I check if hyperbolic 2 lines intersect? HOT 13
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 hyperbolic-canvas.