Skip to main content

Questions tagged [geometry]

This challenge is intended to be solved by using, manipulating, or creating shapes or other geometric structures.

Filter by
Sorted by
Tagged with
-4 votes
3 answers
350 views

Given the anti-clockwise points of a properly formed, non-self-intersecting, not-necessarily-convex polygon, render it as a filled ASCII art polygon. Input A series of at least 3 (x,y) pairs ...
Steve Bennett's user avatar
16 votes
7 answers
1k views

I'm surprised we don't have the crossed ladders problem as a task here yet. Two ladders of lengths a and b lie oppositely across an alley, as shown in the figure. The ladders cross at a height of h ...
Parcly Taxel's user avatar
  • 4,749
18 votes
13 answers
1k views

We've been given a map of the night sky. The map features three single characters, to match the theme, I'll refer to them O, X ...
turalson's user avatar
  • 581
9 votes
2 answers
346 views

In this code-golf challenge, you will count the number of ways of putting together pieces of a building toy which consists of slotted squares that interlock with one another, shown below. In ...
Peter Kagey's user avatar
  • 8,175
8 votes
1 answer
253 views

Write a program or function which, given 1 or more polygons, determines the greatest number of polygons overlapping at a single point. That is, if each polygon was a piece of paper positioned ...
Steve Bennett's user avatar
9 votes
1 answer
390 views

In this code-golf challenge, you will work with a construction that was used by the ancient Greeks: the straightedge-and-compass construction. In particular, you will count how many different ...
Peter Kagey's user avatar
  • 8,175
1 vote
2 answers
315 views

Input You are given 2 positive integers, n, q, followed by q queries. the queries can be of two forms: 0 a b: add the line a*x + b. a and b are integers between -...
3RR0R404's user avatar
  • 115
12 votes
14 answers
1k views

A cube has 6 faces. We can define it in terms of triangles only, by splitting each square face on the diagonal. Each vertex of the cube is numbered 0 through 7. The coordinates of a vertex are that ...
TJM's user avatar
  • 221
9 votes
7 answers
574 views

Consider a triangle \$ABC\$ whose sides \$BC,CA,AB\$ have lengths \$a,b,c\$ respectively. In this triangle we can construct circles \$G_A,G_B,G_C\$ such that \$G_A\$ is tangent to \$CA,AB,G_B,G_C\$ \$...
Parcly Taxel's user avatar
  • 4,749
20 votes
6 answers
1k views

A kei (圭) is an algebraic structure that abstracts the idea of mirror reflections. The kei is given as a set of mirrors \$X\$ and a closed reflection operation \$(\rhd) : X\times X\rightarrow X\$. We ...
Wheat Wizard's user avatar
  • 103k
12 votes
13 answers
1k views

Your input is a rectangular 2D char array, such as: .X.......X .......... .....X.... ..X....... ........X. .X........ ..X.....X. X......... ....X..... Your goal is ...
Ben Stokman's user avatar
6 votes
2 answers
384 views

Find the order (size) of the symmetry group of a finite set of integer points in d-dimensional space. Input You will be given the coordinates of a finite set of points in d-dimensional space, in any ...
aeh5040's user avatar
  • 2,072
7 votes
2 answers
355 views

An n-simplex is a generalization of 'triangleness' in any dimension (specifically, it is the simplest shape requiring n dimensions). Starting with 0 dimensions, the named simplexes are: point, line ...
user119818's user avatar
  • 1,631
16 votes
10 answers
1k views

Related: Draw A Reuleaux Triangle!, Draw a regular polygon A Reuleaux polygon is a curve of constant width made up of circular arcs of constant radius. The most well-known Reuleaux polygon is the ...
noodle person's user avatar
12 votes
1 answer
488 views

If you model a satellite as a free point orbiting a body, you can pretty easily see it has 6 degrees of freedom: three for the X, Y, and Z position, and three for the X, Y, and Z velocity. However, ...
user119818's user avatar
  • 1,631

15 30 50 per page
1
2 3 4 5
27