openhistoricaldatamap / bvgdetection Goto Github PK
View Code? Open in Web Editor NEWThis project forked from zoeddle/bvgdetection
This project forked from zoeddle/bvgdetection
IndoorMeasurementImpl.calcNewPosition():
Wie soll man am besten damit umgehen, wenn der User sich dreht? Da ich immer die Position vom vorherigen Punkt aus berechne sieht die Berechnung normalerweise so aus:
// coordinates[0] = x = movement left / right
// coordinates[1] = y = movement forward / backward
// coordinates[2] = z = movement upward / downward
coordinates[0] += x;
coordinates[1] += y;
Sobald eine Drehung festgestellt wurde, sollte eigentlich nur das Vorzeichen umgekehrt werden müssen.
Also:
coordinates[0] -= x;
coordinates[1] -= y;
Allerdings ist in dem Berechnungsschritt, in dem die Drehung festgestellt, y < 0... Das hat zur Folge, dass natürlich die Koordinate falsch berechnet wird. Im darauffolgenden Schritt funktioniert es dann problemlos, weil y > 0.
Meine Lösung mit einem entsprechenden Flag, falls es der erste Berechnungsschritt seit Drehungsdetect ist, ist nicht sehr elegant..
also ds ist so....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.