Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 18 results for
distanceto
- Page 1
Constantly check DistanceTo()
Programming
Mobile Development
11 Years Ago
by DJ-DOO
… the distance between both, I am using the
distanceTo
() to get the distance, this is calculated on…. Is there a way to constantly call the
distanceTo
() method, if I put it in a while…amp; LONG parent.setLongitude(Plongitude); float distance = child.
distanceTo
(parent); //GETTING DISTANCE FROM PARENT LOCATION TO CHILD LOCATION…
Re: Constantly check DistanceTo()
Programming
Mobile Development
11 Years Ago
by DJ-DOO
no one can help me out?!!!!!!
Re: Constantly check DistanceTo()
Programming
Mobile Development
11 Years Ago
by peter_budo
I would like to have app that would run non-stop and drain energy. I would rather have service that on pre-define time wakes-up do what ever needs to be done and go back to sleep. Have look on this threadd at stackoverflow [Service architecture, continuously running vs. wake up](http://stackoverflow.com/questions/7905939/service-architecture-…
Re: Constantly check DistanceTo()
Programming
Mobile Development
11 Years Ago
by DJ-DOO
Hi Peter, Thanks for your reply, my apologies, I've been working on this a while now and I keep coming up against problems and to be honest it gets a little frustrating!! To be honest, at the moment I can't really restructure the architecture, I'm very inexperienced when it comes android so I'm happy I've come this far. This is just for demo …
Re: Constantly check DistanceTo()
Programming
Mobile Development
11 Years Ago
by peter_budo
What you can do is that once the coordinates are received call on Socket `s.close()` and that will end `while(s.isConnected())`
Re: Constantly check DistanceTo()
Programming
Mobile Development
11 Years Ago
by DJ-DOO
Thanks Peter, that won't work as I need to keep the socket open in order to constantly receive coordinates. I managed to sort it myself though thank you!
Client A sending coordinates to Client B in string format
Programming
Mobile Development
11 Years Ago
by DJ-DOO
…. In order to make use to make use of the
distanceTo
() method in the android.loaction I need to have a… how to use the coorinates in string format in the
distanceTo
() method or how to extract them out of a string…
C++ PROBLEM.
Programming
Software Development
10 Years Ago
by aqzee
… constructor Point(double x, double y); // two-argument constructor double
distanceto
(Point&); // Destructor ~Point(); // Mutator methods void setX(double val… UNDERSTAND 2. Add a new member function to Point called
distanceTo
. This member function should accept as an argument a Point…
CLI/C++ dot painting
Programming
Software Development
12 Years Ago
by Mindless Z
… setY(int y) { X=y; } Color myColor = Color::White; double
distanceTo
(int x, int y) { return Math::Sqrt((X-x)*(X…
Re: extremely weird pointer behaivour
Programming
Software Development
13 Years Ago
by tomtetlaw
… inside Update: [code=c++] void C_CameraFollower::Update( ) { if( edict.position.
DistanceTo
( camera_position ) < 3 ) { state = CFS_WAITING; SetThink( ( thinkfunc_t )&C_CameraFollower::WaitThink…
Re: Objects and Mouse Click help
Programming
Software Development
13 Years Ago
by JamesCherrill
… = 0; i < Stores.length; i++) { double dist = Stores[i].
distanceTo
(e.getX(), e.getY()) if (dist < closestDistance ) { closestStore= Stores…
Re: Wrong euclidian output
Programming
Software Development
13 Years Ago
by ravenous
… name of your function from [icode]distance()[/icode] to [icode]
distanceTo
()[/icode]. A user might expect [icode]distance()[/icode] to look…
Re: C++ PROBLEM.
Programming
Software Development
10 Years Ago
by deceptikon
> NOW THE QUES IS THAT I CAN'T UNDERSTAND Which part don't you understand? The instructions are very explicit, though there's an assumption that you'll figure out how to calculate the distance between two points. I would expect a programming instructor to at least remind the class that the distance between two points can be solved with an …
Re: CLI/C++ dot painting
Programming
Software Development
12 Years Ago
by Mindless Z
Perhaps a better way to word my question would be how do i test whether a key is down AND the mouse has been clicked?
Re: CLI/C++ dot painting
Programming
Software Development
12 Years Ago
by BobS0327
Create a KeyPressEventArgs event handler and process the KeyChar property [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.keypresseventargs.aspx"]http://msdn.microsoft.com/en-us/library/system.windows.forms.keypresseventargs.aspx[/URL]
Re: CLI/C++ dot painting
Programming
Software Development
12 Years Ago
by Mindless Z
I'm afraid I still cant seem to figure it out. I can't figure out how to test for both the key down and mouse click together. I can get both to work separately but i'm not sure how to go about combining the two events
Re: CLI/C++ dot painting
Programming
Software Development
12 Years Ago
by BobS0327
[QUOTE=Mindless Z;1768108]I'm afraid I still cant seem to figure it out. I can't figure out how to test for both the key down and mouse click together. I can get both to work separately but i'm not sure how to go about combining the two events[/QUOTE] In my code, I've set up the following [B][COLOR="Red"]GLOBAL[/COLOR][/B] variables…
Re: CLI/C++ dot painting
Programming
Software Development
12 Years Ago
by Mindless Z
Thank you so much, with your suggestions i was able to get it finally.
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC