I was trying to pack circles of different sizes into a rectangular container, not packing in circular container that d3.js bundled with, under d3.layout.pack.  here's the layout I want to achieve:    I've found this paper on this matter, bu...
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 able to draw a simple circle on HTML5 canvas, but I'd like to add some blur around it.  What I found was this website which explains the shadowBlur property which can come in handy here.  However, I cannot manage to make the circle itself...
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 have 4 points 1,2,3,4 that closes a rectangle.  The points are in a array in this following way: x1 y1 x2 y2 x3 y3 x4 y4  The problem I have is that the rectangle can be rotated in a angle.  How can I calculate the original points (gray outline), a...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.