Where would i go to look for algorithms that take a 2d grid of values that are either 0 or 1 as input and then identifies all possible non-overlapping rectangles in it?
In a more practical explanation: I am drawing a grid that is represented by a number of squares, and i wish to find a way to combine as many adjacent squares into rectan...
I don't want the border of a window's client area to be seen. Is there any way to remove them? The window is a SDI(Single Document) window.
I also noticed that the border appeares only on the top and left side of the client area (no on the right and bottom). I was very confused.
Thank you very much!
...
How does one compute the area of intersection between a triangle (specified as three (X,Y) pairs) and a circle (X,Y,R)? I've done some searching to no avail. This is for work, not school. :)
It would look something like this in C#:
struct { PointF vert[3]; } Triangle;
struct { PointF center; float radius; } Circle;
// returns the a...
I have a few maps with certain areas (zones) which I'll want to capture in KML. Within those areas I need to pinpoint addresses.
How do I save those maps with its values as efficient as possible to query them later?
...
i'm looking for a fast way to determine the area of intersection between a rectangle and a circle (I need to do millions of these calculations)
A specific property is that in all cases the circle and rectangle always have 2 points of intersection.
Java lib would be awesome!
Thanks,
Britske
...
Can anyone help me on how to draw rectangles for space in a bounding box region with n rectangular obstacles? There could be any number of axis parallel rectangular obstacles, this is not a unique case, thus different corner cases needs to be taken into consideration. Is it best to use maximal horizontal strip algorithm? And how?
Probl...
Hello,
There are two img elements that use the same map with one area. Now, we bind e.g. a click event handler to the area element. Is it possible to determine from the event handler which image instance has been clicked?
...
Hi,
My question may be obvious but I'd like to build a well-designed web application.
As for any administration area, the admin should be able to list/create/delete/modify users, articles, posts, etc...
I'd like to know what is the best way to design the application.
Should I create a controller for each one of those items (/Users/Crea...
hello, have some divs, on some positions. i want select them with mouse, like when are you selecting object in photoshop. so i want to select group of divs. is that possible with jquery ? thanks
...
How can I find out where a div has been dropped after it was dragged?
...
I am looking for a way to calculate the common areas covered by multiple overlapping polygons. The polygons are all right-angled, if that helps makes things easier.
So for example:
BBBBB
BBBBB
AAA---BB
AAA---BB
AAAAAA
AA--AA
AA--AA
LL
LL
LLLLLL
LLLLLL
I would like to find the common area covered by A, B and L, which wo...
Hi All,
I have one div a i.e the superset of div b but i want to make the area div a - div b as droppable.
How can i do that??
...
Edit:
Simple code I used to solve the problem in case anyone is interested (thanks to Fredrik):
int windowOverlap(Rectangle rect1, Rectangle rect2)
{
if (rect1.IntersectsWith(rect2))
{
Rectangle overlap = Rectangle.Intersect(rect1, rect2);
if (overlap.IsEmpty)
return overl...
I would like to have in the same figure a line plot and a part of the graph under the line colored (a confidence interval).
How can I do this in MATLAB?
I already tried the following, but it doesn't work (it only shows the area):
plot(theta, p_prior_cum)
area(theta(50:70), p_prior_cum(50:70))
axis([0 1 0 1])
...
I've been using the following code to detect browser client area width for ages and it wokred 100% with all browsers, including FF, Safari and various versions of IE. However, now when I switched to a new monitor with widescreen resolution (1280x800) this code fails on IE8. It reports clientwidth of 1024 !!!???
Any ideas how to get the ...
I want to find the non-white area of an image from a camera using OpenCV. I can already find circles using images from my web cam. I want to make a grid or something so I can determine the percent of the image is not white. Any ideas?
...
I'm looking at Haacks article here - http://haacked.com/archive/2009/07/31/single-project-areas.aspx
When I download the sample I get the following errors in the Global.ascx
Error 1 'System.Web.Routing.RouteCollection'
does not contain a definition for
'MapAreaRoute' and no extension method
'MapAreaRoute' accepting a first
a...
I have a flash cs3 file where I want a mask to move on the y axis (up and down) when the user is scrolling over the navigation area.
In my code, I have:
maskMC.startdrag();
How do I limit the area where the mask will move, then make it return it back to it's original position when the user moves away from the specific area (in this ca...
I'm using KImageMapEditor on Linux (Ubuntu) to create an image map. The shapes in the image are a little complex so I'm using the freehand tool to draw them. However, this is really the same as the polygon tool so the shapes have ended up with a lot of points, which has made the HTML pretty huge.
Does anyone know of a way to reduce the ...
Is there a standard for this? Algorithm name?
Say:
I have 10 polygons of different sizes.
I have an area of specific size.
I want to know how to fill the most polygons in that area, and how they are fitted.
Note:
Polygons may be rotated depending on the restriction set.
...