Top "Geometry" questions

Data structures and algorithms related to geometry.

How do you detect where two line segments intersect?

How do I determine whether or not two lines intersect, and if they do, at what x,y point?

geometry line-intersection
Calculate distance between 2 GPS coordinates

How do I calculate distance between two GPS coordinates (using latitude and longitude)?

math geolocation geometry latitude-longitude geography
Easier way to create circle div than using an image?

I'm wondering if there's an easier way to create circular divs than what I'm doing now. Currently, I am just …

html css geometry css-shapes
How to draw circle in html page?

How do you draw a circle using HTML5 and CSS3? Is it also possible to put text inside?

html css geometry css-shapes
Equation for testing if a point is inside a circle

If you have a circle with center (center_x, center_y) and radius radius, how do you test if a …

algorithm language-agnostic geometry
Using the "animated circle" in an ImageView while loading stuff

I am currently using in my application a listview that need maybe one second to be displayed. What I currently …

android loading android-asynctask geometry
Determine if two rectangles overlap each other?

I am trying to write a C++ program that takes the following inputs from the user to construct rectangles (between 2 …

c++ algorithm geometry overlap rectangles
Converting from longitude\latitude to Cartesian coordinates

I have some earth-centered coordinate points given as latitude and longitude (WGS-84). How can i convert them to Cartesian coordinates (…

mapping geometry geospatial
Draw radius around a point in Google map

I'm using the Google Maps API and have added markers. Now I want to add a 10 mile radius around each …

javascript google-maps geometry drawing
Shortest distance between a point and a line segment

I need a basic function to find the shortest distance between a point and a line segment. Feel free to …

language-agnostic geometry distance line-segment