coordinates

VB.net — Getting mouse coordinates outside the form

流过昼夜 提交于 2019-12-13 14:22:05
问题 I'm writing a simple program in Vb.net that collects information. such things as mouse x y coordinates, Pixel color, and keystroke numbers. I would like to be able to view the x and y coordinates of the cursor anywhere on the screen instead of just over the form, and i would like to do this in the simplest way possible. One way i have achieved the desired effect is with the following settings: Picturebox2: BackColor = Red image = 3 x 2 pixel image (Hardly visible, but is required all the same

Coordinate system transformation, 3d projection to 2d plane

こ雲淡風輕ζ 提交于 2019-12-13 11:23:58
问题 I have a global coordinates system (X, Y, Z), and a triangle with points (A, B, C and Center). I know all coordinates of those points. I need to move global coordinates system from (0; 0; 0) to the triangle center, so that all the points: A, B, C and Center would have new coordinates where Z = 0. After that i need to know new coordinates of those points in the relation with new coordinates system. The orientation of new coordinate system is not important. Also, if there is a possibility to

Calculate angle between three GPS coordinates

依然范特西╮ 提交于 2019-12-13 10:54:07
问题 perhaps this is a simple question. I have 3 GPS coordinates (one is the current user location). What I want now is to calculate the angle between the user location and the two GPS coordinates. Imagine the user location in the center of the two other points, the three points can be seen as a triangle. And I want to calculate the angle at the user location. I hope someone can help me because I have no idea how to do this with spherical coordinates like the GPS coordinates I have. THX - nekro

Unity obtaining Vector of click event

非 Y 不嫁゛ 提交于 2019-12-13 10:46:33
问题 I'm utilizing Unity's Vector3 method, ScreenToWorldPoint. In short, I can click anywhere on a GameObject and obtain the Vector3 of where the click was in the game. However the result I'm obtaining is the Vector3 directly in front of the camera, rather then where I'm truly clicking on the surface of a given GameObject in the scene. I want the coordinates of exactly where I click on the surface of a GameObject. 回答1: You want to Raycast from the camera to the object. See the help pages for more

Convert long and lat to Coordinates on country only [closed]

假装没事ソ 提交于 2019-12-13 09:34:21
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . the map of japan with pointer on it... The problem is what will be the formula to to convert the lat ang long to get the right coordinates with the map of japan only.. i use php gd with both image the map and the pointer.. i already manage to plot the right coordinate in whole world using with this

Google Maps coordinates to perspective map image coordinates

十年热恋 提交于 2019-12-13 08:58:40
问题 I'm creating an android app that uses a image as a map. I have a image in perspective and need to put some pins and show the user where he is. How can I convert the google maps coordinates to the position in the image? Thank you 回答1: there is no code to share here since it it dependent on how you show the image (I assume you are not using GoogleMap object and ground overlay... You have to create your specific function for reprojecting the image coordinates (that you can try to normalize

How do I flip upside down fonts in FTGL

微笑、不失礼 提交于 2019-12-13 07:38:14
问题 I just use FTGL to use it in my app. I want to use the version FTBufferFont to render font but it renders in the wrong way. The font(texture?buffer?) is flipped in the wrong axis. I want to use this kind of orthographic settings: void enable2D(int w, int h) { winWidth = w; winHeight = h; glViewport(0, 0, w, h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); //I don't even want to swap the 3rd and 4th param //because I like to retain the top-left as the origin glOrtho(0, w, h, 0, 0, +1);

Going to a certain position in a string [closed]

懵懂的女人 提交于 2019-12-13 07:15:59
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . I want to get to a certain point on a string that is opposite (from the negative side) to that of what I am given.

How to group coordinates by distance

五迷三道 提交于 2019-12-13 05:14:52
问题 I have a set of points (coordinates), and I can calculate de distance from each to all. But I want to group the points that are near each other (lets say, less than 500m). PointsCoords =[ ["lat01, lng01", "P01"], ["lat02, lng02", "P02"], ["lat03, lng03", "P03"], ["lat04, lng04", "P04"], ["lat05, lng05", "P05"], ["lat06, lng06", "P06"], ["lat07, lng07", "P07"] ]; I make the calculations and I know now that for distance less than 500m I have the pairs: varAllPairs = [ [P01, P03], //450m [P02,

Create a coordinate pair from this code

百般思念 提交于 2019-12-13 04:24:02
问题 Here is my current code a_reader = None a_reader = open('data.csv', 'rU') a_csv_reader = csv.reader(a_reader) for row in a_csv_reader: print row a_reader.close() count = 0 sum = 0.0 a_reader = open('data.csv', 'rU') a_csv_reader = csv.reader(a_reader) a_csv_reader.next() for row in a_csv_reader: if count != 0 and row[0] != '': sum = sum + float(row[0]) count = count + 1 a_reader.close() print 'Number of lines is:',count print 'Sum is:',sum return listStation This produces the results below [