I have a set of metallic sliding pieces which are constrained to the x and y axis in following way: I would need to maximize the horizontal distance among all pieces constrained by the same slider and the vertical distance among the sliding piec...

I'm using the Google Maps API and have added markers. Now I want to add a 10 mile radius around each marker, meaning a circle that behaves appropriately while zooming. I have no idea how to do that and it seems it's not something common. I f...

Yesterday I was looking to check if a point was inside a polygon and found this great script: https://github.com/tparkin/Google-Maps-Point-in-Polygon But today at work I was told that our client needs to check if one polygon is inside another polygo...

Basically I'm asking this question for JavaScript: Calculate Bounding box coordinates from a rotated rectangle In this case: iX = Width of rotated (blue) HTML element iY = Height of rotated (blue) HTML element bx = Width of Bounding Box (red...

I want to select random points on a given sphere. This page explains it quite well: http://mathworld.wolfram.com/SpherePointPicking.html ("To obtain points such that any small area on the sphere...") But I'm not entirely sure if I'm...

I need some help writing an equation. I want to generate hexagons of random sizes that are still "perfect"(proportional). The leftmost vertex will be positioned at (0,0). I want to think of the other vertices in relation to that leftmost ve...

I would like to optimize dramaticaly one of my algorithm, i will try to explain it the best way that i can. The subject We are in a 2D euclidian system at the time t = 0. In this system there is two object : O1 and O2. O1 and O2 are respectively s...

I have map. On the top of map layer have a polygon A and circle B. They are intersected each others. Any algorithm can calculate the area of intersection C ?...

I have 3 x,y points that I am trying to use to draw a right trangle. So I am calculating the angles of the triangle after calculating side lengths. After I have gotten the hypotenuse's length, I want to rotate the hypotenuse so that it complete...

How can I change the starting point of a svg circle for animate it progressively begining at 0 o'clock? the default circle svg begin at 3 o'clock. My current circle ( hover for animation): #timeline{ position:fixed; width:500px; height...

©2020 All rights reserved.