Hyperhydras / Hyperhedrons

A web app that visualizes higher dimensional shapes (hyperhedrons)
https://hyperhydras.github.io/Hyperhedrons/
MIT License
0 stars 0 forks source link

"Coordinates of Each Shape" #3

Open luisegarduno opened 1 year ago

luisegarduno commented 1 year ago

Reference - see Google Doc

luisegarduno commented 1 year ago

General Notes

Levi-B4 commented 1 year ago

Circles

General Notes

Coordinates for circles in each dimension will be found using the equation of a circle (x − h)2 + (y − k)2 = r2 and extending this to other dimensions. The centroids will be at (0,0,0,0) and the radii will be 1, the same as the side length of other shapes. The equation of a circle per dimension will be

 (a1 − c1)2 + (a2 − c2)2 + … + (ad − cd)2

where:

1D Line

2D Circle

3D Sphere

4D 3-Sphere

Levi-B4 commented 1 year ago

Squares

General Notes

Coordinates for squares in all dimensions can be found by extruding the square of the previous dimension by the side length in the direction of the new dimension. You can represent these coordinates with binary counting. Each bit corresponds to an axis so a bit is added for each dimension. 0000 = xyzw = (0,0,0,0)

1D Line

  (0,0,0,0)   (1,0,0,0)

2D Square

  (0,0,0,0)   (0,1,0,0)   (1,0,0,0)   (1,1,0,0)

3D Cube

  (0,0,0,0)   (0,0,1,0)   (0,1,0,0)   (0,1,1,0)   (1,0,0,0)   (1,0,1,0)   (1,1,0,0)   (1,1,1,0)

4D Tesseract

  (0,0,0,0)   (0,0,0,1)   (0,0,1,0)   (0,0,1,1)   (0,1,0,0)   (0,1,0,1)   (0,1,1,0)   (0,1,1,1)   (1,0,0,0)   (1,0,0,1)   (1,0,1,0)   (1,0,1,1)   (1,1,0,0)   (1,1,0,1)   (1,1,1,0)   (1,1,1,1)

Levi-B4 commented 1 year ago

Triangle

I still need to find a simple way to scale dimensions, It is close but not yet complete. The next comment will have the dimensional pattern. For now I will note that with each dimension of a triangle, including the 0th dimension, a new vertex is added. For example a four dimensional triangle has 5 vertices.

0D Point