Questions tagged [area]

Area is a quantity that expresses the extent of a two-dimensional surface or shape, or planar lamina, in the plane.

Area is a quantity that expresses the extent of a two-dimensional surface or shape, or planar lamina, in the plane. Area can be understood as the amount of material with a given thickness that would be necessary to fashion a model of the shape, or the amount of paint necessary to cover the surface with a single coat.

1332 questions
8
votes
4 answers

cocos2d extend touch area from a button

I got some radiobuttons but the toucharea is to small. The toucharea depends on the image size. Is there an elegant way to extend the touch area with cocos2d without using a bigger image or make my own touch areas with cgrect? setContentSize do what…
zeiteisen
  • 7,078
  • 5
  • 50
  • 68
8
votes
1 answer

Efficient algorithm to determine largest open space

I have a situation, brilliantly illustrated below, which requires me to work out the largest circles (open space) within an area. In the below example, the black circles are fixed known positions, I need to find the largest area (represented by the…
anothershrubery
  • 20,461
  • 14
  • 53
  • 98
8
votes
4 answers

Find largest area in 2d array in c++

I need to write recursive function in c++ that finds largest area of number '1' in 2d array that contains only 1 or 0. Example: int Arr[5][8] = { { 0, 0, 0, 0, 1, 1, 0, 0, }, { 1, 0, 0, 1, 1, 1, 0, 0, }, { 1, 1, 0, 1, 0, 1, 1, 0, }, { 0, 0, 0, 1, 1,…
user1449504
  • 115
  • 1
  • 6
8
votes
2 answers

iOS how to calculate number of pixels/area enclosed by a curve?

I got an arbitrary shaped curve, enclosing some area. I would like to approximate the number of pixels that the curve is enclosing on an iPhone/iPad screen. How can I do so? A curve is defined as a successive x/y coordinates of points. A curve is…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
8
votes
2 answers

Select an area to capture using the mouse

I'm making a Java based screen shot application, and I want to make it so when you push a combination of keys on your keyboard something like this video happens where you select and area on your screen, and it takes a screen shot of the selected…
Jonathan Beaudoin
  • 2,158
  • 4
  • 27
  • 63
7
votes
6 answers

Matlab, how to calculate AUC (Area Under Curve)?

I have the file data.txt with two columns and N rows, something like this: 0.009943796 0.4667975 0.009795735 0.46777886 0.009623984 0.46897832 0.009564759 0.46941447 0.009546991 0.4703958 0.009428543 0.47224948 0.009375241 0.47475737 0.009298249…
DavideChicco.it
  • 3,318
  • 13
  • 56
  • 84
7
votes
1 answer

JCrop - Can't move selection

I have a simple jcrop example and I can't seem to figure out how to move the selection. I thought that it might be the JQuery library but I am using v1.3.2, which is what the demo uses. I have used jcrop in another site and everything works fine…
jimbo
  • 71
  • 1
  • 3
7
votes
1 answer

JFreeChart select an area without zooming

I recently started using JFreeChart and there is something i would like to do but i'm not sure if it's possible. My program is supposed to draw a spectrogram (a sound graph) from a wav file. So i managed to get the data from my wav file in a double…
user2299206
  • 71
  • 1
  • 3
7
votes
1 answer

What is "gate count" in synthesis result and how to calculate

I'm synthesizing my design with design compiler and have some comparison with another design (as a evaluation in my report). The Synopsys's tool can easily report the area with command but in all paper I've read care about gate count. My quiz is…
Khanh N. Dang
  • 906
  • 1
  • 9
  • 18
7
votes
1 answer

How to arrange N rectangles to cover minimum area

Possible Duplicate: Algorithm needed for packing rectangles in a fairly optimal way I have N rectangles, each of a random size (random width & height). All rectangles are parallel to the X & Y axes. I'm looking for an algorithm that helps me…
xxbbcc
  • 16,930
  • 5
  • 50
  • 83
6
votes
3 answers

Area of a polygon (Recursively using Python)

I'm trying a solve an exercise from Exploring Python book. But, I guess I don't understand concept of the recursion. I've written some Recursively function. Therefore I know some of the aspects. But, I don't have enough experience. And I've stopped…
mustafaSarialp
  • 265
  • 1
  • 7
  • 17
6
votes
2 answers

How can I calculate the area within a contour in R?

I'm wondering if it is possible to caclulate the area within a contour in R. For example, the area of the contour that results from: sw<-loess(m~l+d) mypredict<-predict(sw, fitdata) # Where fitdata is a data.frame of an x and y…
Burton Guster
  • 2,213
  • 8
  • 31
  • 29
6
votes
1 answer

refresh drawing area in gtk

I have a bunch of drawing areas (they are actually cairo surfaces, but I don't think it matters too much) in a scrolled window, and I would like to refresh the drawings. However, when I redraw the images, they are not shown till I scroll the window…
v923z
  • 1,237
  • 5
  • 15
  • 25
6
votes
2 answers

Jquery: mouseover event on image map area

I'm trying to do actions on mouseover of an image map area. Here is my HTML: Denis and David - web development and solution
denislexic
  • 10,786
  • 23
  • 84
  • 128
6
votes
2 answers

Filling area under the curve with matplotlib

I have a pandas series, and this is the graph: I want to fill the area under the curve. The problem is that calling plt.fill(y) outputs: As seen in other answers, this is because we need to send a polygon to the function, so we have to add a…
Alexis
  • 394
  • 4
  • 14