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
116
votes
15 answers

Combined area of overlapping circles

I recently came across a problem where I had four circles (midpoints and radius) and had to calculate the area of the union of these circles. Example image: For two circles it's quite easy, I can just calculate the fraction of the each circles…
Anton Hansson
  • 2,141
  • 2
  • 14
  • 16
80
votes
3 answers

Calculating the area under a curve given a set of coordinates, without knowing the function

I have one list of 100 numbers as height for Y axis, and as length for X axis: 1 to 100 with a constant step of 5. I need to calculate the Area that it is included by the curve of the (x,y) points, and the X axis, using rectangles and Scipy. Do I…
user1640255
  • 1,224
  • 3
  • 19
  • 25
79
votes
13 answers

Calculate area of polygon given (x,y) coordinates

I have a set of points and would like to know if there is a function (for the sake of convenience and probably speed) that can calculate the area enclosed by a set of points. for example: x = np.arange(0,1,0.001) y = np.sqrt(1-x**2) points =…
pbreach
  • 16,049
  • 27
  • 82
  • 120
42
votes
4 answers

MATLAB, Filling in the area between two sets of data, lines in one figure

I have a question about using the area function; or perhaps another function is in order... I created this plot from a large text file: The green and the blue represent two different files. What I want to do is fill in the area between the red line…
Josh
  • 421
  • 1
  • 4
  • 4
38
votes
8 answers

Check if a latitude and longitude is within a circle

See this illustration: What I would like to know is: How to create an area (circle) when given a latitude and longitude and the distance (10 kilometers) How to check (calculate) if a latitude and longitude is either inside or outside the area I…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
33
votes
9 answers

How can I calculate the area of a bezier curve?

Given the following path (for example) which describes a SVG cubic bezier curve: M 300,140 C 300,40, 500,40, 500,140 And assuming a straight line connecting the end points 300,140 to 500,140 (closing the area under the curve), is it possible to…
MikeW
  • 369
  • 1
  • 3
  • 8
29
votes
7 answers

Can I have an onclick event on a imagemap area element?

I would like to put an onclick event on an area element. Here is my setup:
danyo
  • 5,686
  • 20
  • 59
  • 119
27
votes
5 answers

Connected Component Labeling - Implementation

I have asked a similar question some days ago, but I have yet to find an efficient way of solving my problem. I'm developing a simple console game, and I have a 2D array like this: 1,0,0,0,1 1,1,0,1,1 0,1,0,0,1 1,1,1,1,0 0,0,0,1,0 I am trying to…
user1981497
25
votes
7 answers

Area of intersection between circle and rectangle

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.
user67424
  • 297
  • 1
  • 4
  • 6
25
votes
3 answers

Apply css to AREA MAP

I'm created a very large map with many poly areas (over 20 coordinates each) for regions within the map. However, you can't add css to the AREA tag as I was told it's not a visible element. What I want to do is when the user hovers over an area on…
user2385136
24
votes
7 answers

Find the area between two curves plotted in matplotlib (fill_between area)

I have a list of x and y values for two curves, both having weird shapes, and I don't have a function for any of them. I need to do two things: Plot it and shade the area between the curves like the image below. Find the total area of this shaded…
F4R
  • 403
  • 1
  • 3
  • 11
22
votes
8 answers

Compute the area of intersection between a circle and a triangle?

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 {…
Mark Maxham
  • 1,501
  • 2
  • 13
  • 19
19
votes
3 answers

How to check if coordinate inside certain area Python

Lets say I have 2 kind of coordinate, first called center_point and second called test_point. I want to know if test_point coordinate is inside near or not to center_point coordinate by applying radius threshold. If I write it, its…
ytomo
  • 809
  • 1
  • 7
  • 23
19
votes
7 answers

Find area of polygon from xyz coordinates

I'm trying to use the shapely.geometry.Polygon module to find the area of polygons but it performs all calculations on the xy plane. This is fine for some of my polygons but others have a z dimension too so it's not quite doing what I'd like. Is…
Jamie Bull
  • 12,889
  • 15
  • 77
  • 116
18
votes
6 answers

Set a background color on the HTML element?

Is there any way to set a background color for the HTML element? I'm creating an image map where certain sections of the map will pop up a tooltip when you mouse over them, and I thought it would be cool (and convenient) if I could set a…
daGUY
  • 27,055
  • 29
  • 75
  • 119
1
2 3
88 89