Another beginner WPF question from me :)
Ok, so I have a User Control added to a Canvas. In another area of the application I have two TextBoxes that will get 2 values : X and Y. I need a two-way binding between the user control's top left corner coordinates and those 2 textboxes.
I don't mind implementing a Converter or doing some cal...
I would like to draw some shapes on a JPanel by overriding paintComponent. I would like to be able to pan and zoom. Panning and zooming is easy to do with AffineTransform and the setTransform method on the Graphics2D object. After doing that I can easyli draw the shapes with g2.draw(myShape) The shapes are defined with the "world coordin...
Hi
I wanna generate a random triangle with coordinates, which shows the arcs of each corner in actionscript 2.0 with flash 8.0.
Thanks in advance
...
how can i reference a display object's coordinates according to it's parent object or stage from within the class that creates the object?
essentially when i create a new sprite object from a custom class and add it to the display list, i'd like to include code within the custom class that limits the drag coordinates to the stage, or a ...
I'm looking for a C++ library which allows for easy integration of Coordinate Transformation Matrices (CTM) in my application. You might know CTMs from PDF or PostScript.
For one project we are using C++/Qt4 as a framework, which offers a QTransform class, which provides methods like .translate(double x, double y) or .rotate(double degr...
Hi there- think I may need an iPhone guru with some math skills for this one. I have two map views on one page, call them map A and map B. When the user updates map A, map B gets updated automatically, and vice-versa...
Where it gets tricky is that when the user updates map A (drag/swipe/zoom), I need map B to update so that the coord...
Hi,
Just i come across one application.When i load that application,the actual applcation is like toolbar only.Its get loaded in the top of the screen.And the desktop items automatically get moved and displayed below toolbar.Even when i open any other window and maximized the windoe,its get maximized below toolbar only.The screen co ordi...
I have a coordinate. I want to find the top "n" (n being a variable value) nearest coordinates out of several thousand rows stored on a MySQL database. I also want to be able to define maximum and minimum distances between the coordinate in question and the coordinates in the database.
How best am I to go about this? Would it be bonkers...
I have a city "map" (for example - Moscow). She in accuracy repeats the contours the given city in google maps (that is it is copied from google maps and it is a little processed, but the sense remained the same).
Also I have object co-ordinates in a city (in geographic coordinates).
Problem: how to convert geographic coordinates to ...
i have latitude and longitude of particular place and i want to calculate the distance so how can i calculate it?
...
Please see attached picture to better understand my question
i have a matrix of cells of [JXI] ,
cell is square in shape with length "a"
my question is .. is there a way to use FOR loop to assign MIN,MAX coordinate to each cell
taking origin (0,0) at one corner
Thanks
i was trying following code but no success
int a ;
a = 1;
f...
I know that the Apple we use the left top point as 0, 0. but OpenGL use left button as (0, 0), is there any short cuts to convert Apple's coordinate to openGL's one? thz.
...
Trouble!
I'm looking for a way to find the countries within a given range of LAT/LONG coordinates.
E.g.:
When viewing an area in Africa using Google Maps, I get out which countries that are in my current view.
This is a bit ambitious, and I think the main problem will be dealing with accuracy of the needed polygons. The accuracy of t...
I have this code to get a row from a JTable that is generated by a DragEvent for a DropTarget in some component C which may or may not be the JTable:
public int getRowFromDragEvent(DropTargetDragEvent event) {
Point p = event.getLocation();
if (event.getSource() != this.table)
{
SwingUtilities.convert...
I have this PHP function, but it seems to give wrong results. Does anybody have an idea what's wrong with it (esp the formula)?
/**
* Finds a destination given a starting location, bearing and distance.
*
* @param array $startingCoordinates The starting coordinates, as non-directional floats in an array with lat and lon keys.
* @pa...
I have a table with columns
NElatitude,NElongitude, NWlatitude,NWlongitude, SElatitude,SElongitude, SWlatitude,SWlongitudepoints. Other application(am don't know exactly) will insert the data into this columns. Using that data in C#.net desktop application, i have been asked draw rectangles on screen.
sorry for inconvenience
thanks &...
The existing application is providing me 8 coordinates like NElatitude, NElongitude, NWlatitude, NWlongitude, SElatitude, SElongitude, SWlatitude, SWlongitude and I have been asked to draw rectangles on screen using these coordinates as screen points. These rectangles should be with scaling.
os :- winXp and C#.Net
Thank you for your h...
Hi all,
I'm working on a simple tutorial, and I'd like to randomly generate the positions of the red and green boxes in the accompanying images anywhere inside the dark gray area, but not in the white area. Are there any particularly elegant algorithms to do this? There are some hackish ideas I have that are really simple (continue to...
Hi, I'm a bit new to MATLAB.
Basically, I have a 20x20 values , complete with various random entries ranging from 0 to 3. I need to write a program that reads this 20x20 square, and assigns x-y coordinates to the entries, so that when I ask for an input of a particular x-y coordinate which has, say an entry of 3, then it will result in...
I'm writing a 2D game in Opengl. I already set up the orthogonal projection so I can easily know where a quad will end up on screen. The problem is, I also want to be able to map pixels directly to texture coords, so I also applied an orthogonal transformation (using gluOrtho2d) to the texture. Now I can map pixels directly using integer...