Giter VIP home page Giter VIP logo

Comments (11)

ItsNickBarry avatar ItsNickBarry commented on July 21, 2024

Yes. For example, this.

I intend to eventually add a function which does this automatically.

from hyperbolic-canvas.

x13machine avatar x13machine commented on July 21, 2024

do squares also work?

from hyperbolic-canvas.

ItsNickBarry avatar ItsNickBarry commented on July 21, 2024

Yes.

from hyperbolic-canvas.

x13machine avatar x13machine commented on July 21, 2024

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.

ItsNickBarry avatar ItsNickBarry commented on July 21, 2024

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.

x13machine avatar x13machine commented on July 21, 2024

I was hoping I would able to use tiled to make levels for my game since it has a hexagonal feature. :(

from hyperbolic-canvas.

x13machine avatar x13machine commented on July 21, 2024

I know, I just convert hexagonal coordinates -> cartesian cordinates -> polar coordinates. so what the sizes are all fucked up.

from hyperbolic-canvas.

x13machine avatar x13machine commented on July 21, 2024

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.

ItsNickBarry avatar ItsNickBarry commented on July 21, 2024

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.

x13machine avatar x13machine commented on July 21, 2024

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.

x13machine avatar x13machine commented on July 21, 2024

your code is shit

from hyperbolic-canvas.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.