area

Drawing area at Google Map.

Please see the image : Any idea how to do that? drawing an area. ...

selecting area on photo

is there any free JS library to select custom resize area on photo? ...

box2d: bigger clickable/touchable area

I'm using Box2D on my iPhone app using Cocos2D. I'm using mouse joint to drag objects by touch. The touch event is handled to find the corresponding Box2D body using AABB queries. I would want to extend the area of Box2D bodies. In this way, I can touch approximately my body and still respond. Does it exist any way to do this? Thanks...

Embeddable text are where users can insert the html

Hello I am a newbie I want to know is there a way to have a text area which allows html where users can paste their html codes ? ...

Calculating Area of Irregular Polygon in C#

Hi peeps 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 _coordX; private double _coordY; private double _coordZ; public...

Java: calculating area of a triangle

import java.lang.Math; import java.awt.* public class Triangle implements Shape { java.awt.Point a; java.awt.Point b; java.awt.Point c; public Triangle(java.awt.Point a, java.awt.Point b, java.awt.Point c) { this.a = a; this.b = b; this.c = c; } public double getArea( ) { do...

Area of intersection of n circles each having radius 'r'.

Prob Statement: 'N' equii radii circles are plotted on a graph from (-)infinity to (+)infinity.Find the total area of intersection i.e all the area on the graph which is covered by two or more circles. Please refer to the below image for better view. ...

CGPathContainsPoint question?

this is in GameViewController.m -(void)fillMutablePath{ CGPoint movePoint = CGPointFromString([pointsToFillArray objectAtIndex:0]); CGPathMoveToPoint(fillPath, NULL, movePoint.x, movePoint.y); for (int i=0; i<[pointsToFillArray count]; i++) { CGPoint tempPoint = CGPointFromString([pointsToFillArray objectAtIndex:...

Gtk buttons over a Gtk drawing area

Hi! i' working with Gtk developing some app. I must put some buttons over a map. I'm drawing the map on a GtkDrawingarea, but i'm not able to put buttons over it. Any suggestion? Thanks ...

JCrop - Cant move selection

I have a simple jcrop example and I cant 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 when i bring it up. I tried setting the "allowMove" option to true but it still doesnt work. Am...

Searching Techniques/Algorithms for Resources over a given area

I have a flat area with nodes randomly placed on this flat surface. I need techniques which are able to take a starting point, move in a certain way (the algorithm), find nodes and continue searching. I do not have an overall view of the surface (i.e. I cannot see everything), only a limited view (i.e. 4 cells in any direction). Ideally,...

How do I get javascript-generated image maps to work with internet explorer?

I'm using javascript to generate a high resolution grid for an image that I generated on a web server. The high-resolution grid is composed of a 'map' element with hundreds of 'area' child elements. Each 'area' element has onmouseover attribute that causes the display of a popup box. After assigning the map to the img (via the usemap at...

Calculate area under FFT graph in MATLAB

Currently I did a FFT of a set of data which gives me a plot with frequency at x axis and amplitude at y axis. I would like to calculate the area under the graph to give me the energy. I am not sure how to determinate the area because I am without the equation and also I only want a certain area of the plot rather than whole area under...

Serialize a java.awt.geom.Area

Hi all, I have the need to serialize an Area object (java.awt.geom.Area) in a socket. However it doesn't seem to be serializable. Is there a way to do such thing? Maybe by converting it into a different object? Thanks in advance ...

Asp.Net MVC - Area Route - UrlHelperExtensions

I still Create Extension methods of UrlHelper to generate your url from Route as per the Best Practices post by Kazi Manhur. I'm curious to know if a better way emerged with MVC 2 and Areas (which I now use)? So basically in your Html call a url helper extension which return a string anyhow that match an existing route. Something does...

ASP.NET MVC - Get Current Area Name in View or Controller

How do you get the current area name in the view or controller? Is there anything like ViewContext.RouteData.Values["controller"] for areas? ...

c# replace JSON area

I have a JSON containing imbricated arrays, maps and primitive values. Is there a way to replace a whole map by knowing the key that is set with ? e.g. in ["a":"aaa", "map1":{"int1":1, "map2":{"int2":2}, "data":null}] I would like to replace the string representing map2 and get ["a":"aaa", "map1":{"int1":1, "data":null}] ...

Polygon area calculation using Latitude and Longitude generated from Cartesian space and a world file.

Given a series of GPS coordinate pairs, I need to calculate the area of a polygon (n-gon). This is relatively small (not larger than 50,000 sqft). The geocodes are created by applying an affine transform with data from a world file. I have tried to use a two step approach by doing converting the geocodes to cartesian coordinates: dou...

Summarize object area with a Hash in Ruby

require 'sketchup' entities = Sketchup.active_model.entities summa = Hash.new for face in entities next unless face.kind_of? Sketchup::Face if (face.material) summa[face.material.display_name] += face.area end end Im trying to get the structure in the array as such: summa { "Bric...

Draw and paint areas in images

Anyone knows a way to draw areas in a image, based on points, like draw areas in google maps? Dynamically with javascript. Editing: what I will do is put a map image on the page and draw an area on the top of a house, etc... Thanks. ...