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
18
votes
2 answers

Mvc area routing?

Area folders look like : Areas Admin Controllers UserController BranchController AdminHomeController Project directories look like : Controller UserController GetAllUsers area route…
AliRıza Adıyahşi
  • 15,658
  • 24
  • 115
  • 197
16
votes
4 answers

Programmatically take a screenshot of specific area

Like you can see in my code, I take a screenshot and save it to the photo album. //for retina displays if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) { UIGraphicsBeginImageContextWithOptions(self.view.bounds.size, NO, [UIScreen…
Sharky
  • 428
  • 5
  • 17
14
votes
3 answers

Calculate Polygon area in planar units (e.g. square-meters) in Shapely

I am using Python 3.4 and shapely 1.3.2 to create a Polygon object out of a list of long/lat coordinate pairs which I transform into a well-known-text string in order to parse them. Such a Polygon might look like: POLYGON ((-116.904 43.371, -116.823…
Dirk
  • 9,381
  • 17
  • 70
  • 98
13
votes
2 answers

Find and replace all matching strings within textarea

I have this var textarea=$('#content'); textarea.html(textarea.html().replace("PID","111111")); This works partially, but it only finds the first "PID" within the textarea and replaces it to "1111111". There are about 7 others I need to change as…
Gavin
  • 147
  • 1
  • 1
  • 8
13
votes
2 answers

Android: Measure/detect covered area by a finger touch on screen (NOT only touch coordinates)

I would like to get access to the area covered by a finger for each touch event on an Android. Every touch event will result in a coordinate pair X and Y independent of how big the finger and consequently the touch area is that triggered the…
chriz
  • 245
  • 4
  • 15
13
votes
4 answers

Calculating Area of Irregular Polygon in C#

I've managed to write a 'for dummies' how to calculate the area of irregular polygon in C#, but I need it to be dynamic for any amount of verticies. Can someone please help? Class: public class Vertex { private int _vertexIdx; private double…
Riaan
  • 3,423
  • 4
  • 30
  • 36
13
votes
2 answers

Finding the overlapping area of two rectangles (in C#)

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 =…
Evan
  • 4,450
  • 10
  • 40
  • 58
12
votes
1 answer

Get Area or Elements in zoomed Scatterplot

I've got the following problem. I want to zoom-in a Scatterplot and then select all the displayed elements. It would be sufficient to somehow get the displayed area in the zoomed-in Scatterplot. From the range of this area i could determine which…
dennis
  • 683
  • 2
  • 5
  • 18
12
votes
7 answers

Get the surface area of a polyhedron (3D object)

I have a 3D surface, (think about the xy plane). The plane can be slanted. (think about a slope road). Given a list of 3D coordinates that define the surface(Point3D1X, Point3D1Y, Point3D1Z, Point3D12X, Point3D2Y, Point3D2Z, Point3D3X, Point3D3Y,…
Graviton
  • 81,782
  • 146
  • 424
  • 602
12
votes
2 answers

C/C++: Perimeter and area of rects. Volume of cuboids

I want to calculate area and perimeter of rects using the following code: rect a; a = ( ----- ! ! -----a ); std::cout << a.area() << std::endl; std::cout << a.perimeter() << std::endl; For this purpose I crafted the…
Sergey K.
  • 24,894
  • 13
  • 106
  • 174
11
votes
1 answer

JQuery Mobile scrollable list inside position:fixed element? (Sencha Touch behavior)

A typical use case would be a page with two columns: The standard behavior in JQuery Mobile is the content scrolls together with page. Is it possible to build an app with JQM using a different paradigm - a fixed viewport with scrollable content?
Vitaly
  • 4,358
  • 7
  • 47
  • 59
11
votes
2 answers

MKCoordinateRegionMakeWithDistance equivalent in Android

We can set the surrounding area for particular location on map in iPhone as following CLLocationCoordinate2D coord = {latitude:37.09024, longitude:-95.712891}; CLLocationDistance latitudinalMeters; latitudinalMeters =NoOfMiles *…
Rupesh
  • 7,866
  • 11
  • 41
  • 58
11
votes
1 answer

Matlab area() edge colors cover the axes lines, is there a work around?

figure('Color', 'w') box on x = 1:10; y = 5 * x + 2; area(x, y, 'FaceColor', 'b', 'EdgeColor', 'b') This code creates a figure with the area under the curve shaded blue. The EdgeColor property sets the trapezoidal line around the filled area to…
moorepants
  • 1,813
  • 2
  • 22
  • 23
11
votes
3 answers

Create clickable body diagram with Swift (iOS)

I'm trying to recreate something for a iOS app (Swift) which I already made in HTML5 (using map area-coords). I want to show a human body diagram that interacts with user clicks/touches. The body exists of let's say 20 different parts, and the user…
klaaskox
  • 329
  • 4
  • 15
11
votes
5 answers

How to divide an area composed of small squares into bigger rectangles?

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…
Mithaldu
  • 2,393
  • 19
  • 39
1
2
3
88 89