Giter Site home page Giter Site logo

flutter-raycasting-gesture's Introduction

2D_RayCasting

A simple Flutter app. (But I think it's not even close to)

What did I do?

  • Ray casting is an algorithm to check whether a given point in the plane lies inside, outside, or on the boundary of a polygon.
  • I used this algorithm with a simple 2D building map which has atleast one room in the map.
  • If I let you touches somewhere in the map, then my app will use the position where you tapped to calculate whether the position is inside a room or it is outside a room. If you touch inside a room, my app will let you know the name of the room.
  • To use this algorithm, it requires you to store positions of every rooms that are in the map by ractangular coordinates (I mean something like XY graph), for example, if a room is like a triangle, that means you need to provide 3 position of the room such as (X1, Y1), (X2, Y2), and (X3, Y3). (This depends on the number of the corner)

flutter-raycasting-gesture's People

Contributors

nuttawut503 avatar

Stargazers

Pittawat Taveekitworachai avatar Thethawat Kongyu avatar

Watchers

 avatar

Forkers

chinaverygood

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.