I have a rectangle R of width W and height H.
I have N points inside this rectangle.
I need to find an algorithm to position my points in the rectangle in the most uniform way possible (no overlaps, max area coverage, uniform density).
So the output of the algorithm should be a list of coordinates.
Here's some examples with different rectangles and points:

Any help?
2026-03-27 03:49:52.1774583392
Find coordinates of n points uniformly distributed in a rectangle
4.9k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in GEOMETRY
- Point in, on or out of a circle
- Find all the triangles $ABC$ for which the perpendicular line to AB halves a line segment
- How to see line bundle on $\mathbb P^1$ intuitively?
- An underdetermined system derived for rotated coordinate system
- Asymptotes of hyperbola
- Finding the range of product of two distances.
- Constrain coordinates of a point into a circle
- Position of point with respect to hyperbola
- Length of Shadow from a lamp?
- Show that the asymptotes of an hyperbola are its tangents at infinity points
Related Questions in ALGORITHMS
- Least Absolute Deviation (LAD) Line Fitting / Regression
- Do these special substring sets form a matroid?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Correct way to prove Big O statement
- Product of sums of all subsets mod $k$?
- (logn)^(logn) = n^(log10+logn). WHY?
- Clarificaiton on barycentric coordinates
- Minimum number of moves to make all elements of the sequence zero.
- Translation of the work of Gauss where the fast Fourier transform algorithm first appeared
- sources about SVD complexity
Related Questions in COORDINATE-SYSTEMS
- How to change a rectangle's area based on it's 4 coordinates?
- How to find 2 points in line?
- Am I right or wrong in this absolute value?
- Properties of a eclipse on a rotated plane to see a perfect circle from the original plane view?
- inhomogeneous coordinates to homogeneous coordinates
- Find the distance of the point $(7,1)$ from the line $3x+4y=4$ measured parallel to the line $3x-5y+2=0.$
- A Problem Based on Ellipse
- Convert a vector in Lambert Conformal Conical Projection to Cartesian
- Archimedean spiral in cartesian coordinates
- How to find the area of the square $|ABCD|$?
Related Questions in PACKING-PROBLEM
- Can the squares with side $1/n$ be packed into a $1 \times \zeta(2)$ rectangle?
- Equilateral Triangle within a Rectangle
- What is the maximum number of non-overlapping circles that can be placed inside an ellipse?
- Packing $n$-diamonds in a $n$-cube and a number theoretic conjecture?
- Pack three largest sphere in a cube with given length.
- Does finding the line of tightest packing in a packing problem help?
- Orthogonally packing consecutive integer cubes 1x1x1 -nxnxn inside the smallest integer cube.
- Tetris: What is the Polyomino (max 3x3) with the least probability of being useful to the player?
- Size dependence of density of random close packing (for spheres)
- Packing Points into Region
Related Questions in UNIFORM-DISTRIBUTION
- Uniform distribution: two parts of semicircle
- What is the distribution of the modular inverse of a uniformly random element in $\mathrm{Z}_{n}\setminus\{0\}$
- Determine limits for marginal pdf after Jacobian transformation
- distribution of Z=X+Y
- integrand of norm subjected to translation
- Convergence of ratio of two sums of uniform random variables
- Variance of $T_n = \min_i \{ X_i \} + \max_i \{ X_i \}$
- $X$ and $Y$ has uniform distribution. Find $(X-Y)^2$
- The sequence $\,a_n=\lfloor \mathrm{e}^n\rfloor$ contains infinitely many odd and infinitely many even terms
- Difference between conditional expectation E(Y|X) and E(Y|X=x)
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Maybe you should create a library of pleasing patterns to choose from. The easiest are rectangular grids. Choose one that has enough dots (maybe a few too many) and aspect ratio close to the rectangle you have to put the dots in. Say your rectangle is $1 \times 3$ and you want $20$ dots. You could make a grid of $2 \times 10$ or $4 \times 5$ but they don't fit very well, so maybe you use $3 \times 7$ with one left out. In this case, if your grid is $n \times m$, you have $n-1$ full spaces between thee dots and 2 half spaces between the dots and the edge, so that gives you the spacing.
A little harder is the pattern on the far right. This would be a nice idea for $20$ dots. You can put the dots on the corners of equilateral triangles, for example.