Questions tagged [coords]
60 questions
11
votes
3 answers
Create clickable body diagram with Swift (iOS)
I'm trying to recreate something for a iOS app (Swift) which I already made in HTML5 (using map area-coords).
I want to show a human body diagram that interacts with user clicks/touches. The body exists of let's say 20 different parts, and the user…

klaaskox
- 329
- 4
- 15
6
votes
5 answers
Using jQuery to change image map coord values
I have a pretty complex image map that I would like to shrink by half. To do so would require dividing all the coord values by 2. Since there are thousands of coord values, I was thinking that I could use jQuery to traverse the DOM to find the coord…

user306472
- 363
- 2
- 8
- 12
5
votes
3 answers
Why does software often use an inverse coordinate system compared to regular math coord system?
As you likely know, in c#, the origin (0,0) of a plane is the upperleft corner. Going to the right and/or under is regarded as +, while going to the left and/or up is -. Opposed to this is the regular math coordsystem:
(0,0)=mid of plane, going…

carrotcake
- 97
- 1
- 5
5
votes
3 answers
Change order of for loops?
I have a situation where i need to loop though xyz coordinates in different orders depending on a users input. So i an area in 3D space then a set of for loops like so.
for(int x = 0; x < build.getWidth(); x++){
for(int y = 0; y <…

Antonio
- 73
- 1
- 5
4
votes
1 answer
Cannot get mouse clicked coord on adb shell getevent
I have an Android TV box which I want to control it by ADB commands. Particularly, I want to send "tap" events on it.
So far I've been doing it by "adb shell input tap x,y", which works fine but is sooo slow.
So I'm trying to do it by "adb shell…

user3206268
- 75
- 7
3
votes
1 answer
Meshlab nan coords and degenerated faces
In my point cloud I can't execute "normal" commands and "filters" because they do not have triangulation faces, so a message appears "Meshlab nan coords and degenerate faces". How do I solve this problem? Can I generate faces in my cloud when I have…

Alexandre Lc
- 31
- 4
3
votes
2 answers
AS3 change lineStyle of existing line
im drawing a line from 0,0 to 100,100
im using this to modify the linestyle:
draw_line.graphics.lineStyle(1, 0xFF0000);
That line is now of 1 thickness.
Is there anyway i can change the thickness of the line to say 10, but without redrawing the…

Ozzy
- 10,285
- 26
- 94
- 138
3
votes
2 answers
PHP: How to create a Geo-Fence(bounding Box) using the Distance from a set of Coords
How would i create the points of a Geo-Fence(bounding box) using lat and lon and a distance.
I have the lat and lon of the center point
I have the geofence distance.
What would the logic be to create the geo-fence around these multiple…

user2010493
- 31
- 1
- 2
2
votes
1 answer
How to mix string with variables in an input needing mutiple values in js? (In this case, the coord attribute of the area tag)
So what the problem I have been facing so far is that I am currently trying to use javascript so that the coords attribute of my area tag is set according to some variables(what it is doesn't really matter). However, the coords require 4 inputs…

Random Programmer
- 23
- 3
2
votes
0 answers
How to specify the map attribute of HTML in a JSF page
I am trying to replicate the below html page using JSF. But can't find the correct JSF tag to do so.
HTML content (Required HTML):

2
votes
1 answer
astlib coordinates code to astropy coordinates code
I'm trying to fix this code which used astlib to convert coordinates to use the astropy coordinate modules. Here's a copy of the code:
from astLib import astCoords as coords
#Convert B1950 coordinates (as given)
clra=zeros(3)
cldec=zeros(3)
for i…

Mosh
- 43
- 5
2
votes
2 answers
How to find coords from angle in a circle
I'm trying to find the coords of the red point in the image, I have the mouse coords, the initial point and the radio but I don't know how to find the coords of the red point.
I am using JavaScript and canvas.

J261
- 642
- 2
- 6
- 21
2
votes
1 answer
Plot circles with centre and radius
I am currently in the progress of using WritableRaster and it's setPixed method, and I need it to not set only one pixel, but a 'circle' with the radius of r.
What I am thinking about is something like this:
for(int y = -r; y < r; y++)
{
for(int…

gedr
- 316
- 1
- 2
- 12
2
votes
1 answer
how to write a coordinated element into a given console?
given the next console:
import os
import tty
import termios
from sys import stdin
class Console(object):
def __enter__(self):
self.old_settings = termios.tcgetattr(stdin)
self.buffer = []
return self
def…

P-J
- 33
- 4
1
vote
0 answers
jQuery Coords change with browser/screen resize
After much help from anstosa on a previous coords question I thought I'd better start a new question.
The problem I have is I am setting a onclick event and the possition of the active event is determined by the coords of the image. But if I resize…

Laurence L
- 613
- 1
- 8
- 21