Math index | Higher dimensional distance | Lines and planes 4d+

Higher dimensional box graphics slicing in O(n times pixels) time, Started 11/27/2026

So first, this is defined by numbers, like (1,2,3) is a coordinate in 3 dimensions, (1,2,3,4,5,6,7,8,9) is a coordinate in 9 dimensions, and with the extra coordinates comes more complexity for how to view this stuff. Any real numbers are valid and the view is defined by a view point, a 2 dimensional view plane, and anything that exactly passes a point on the view plane on the way to the view point from that object is viewable, otherwise it is not viewable. Some may only see like 3 dimensions, but they are not the axis aligned axes always. The following is about any dimensional Euclidean axis aligned boxes.

The single ray in O(n) time

For a single ray, the minimums and maximums per dimension and then the maximum of minimums and minimum of maximums relative to the travel to the screen pixel gives us a good accept or reject. If the maximum of minimums is greater than the minimum of maximums, then discard. For example, in 4 dimensions, it travels all 1's to the pixel from the view point, say for x 2 is minimum travel and 5 is maximum travel, y makes 1 minimum and 4 maximum, z makes 1 maximum and 0.5 minimum, and w makes 1 minimum and 1 maximum, minimum of maximums is 1, and 2 is maximum of minimums, and discard this pixel because it has a minimum need more than maximum, impossible. Note, divide by dimension travel to the pixel for comparison.

The scanline O(2n times pixels) time worst case algorithm

Once that is established, the minimum of maximum dimension and maximum of minimum dimension may be checked going in a pixel line until a possibly valid pixel is found or the ends pass each other, this goes from both sides of the screen. This allows 2 dimensions instead of all and still accuracy for the found parts. There may also be a way based on trends to calculate how many pixels to go instead of checking all the pixels until the outline is found. Use the full dimensions to verify the actual bounds and what is in them and the travel relative to the travel to a pixel may replace normal z dimension. Some whole lines may be discarded because things do not move that need to.

Talk about it

This is per object and may apply to other space geometries with varying properties, e.g. hyperbolic or spherical higher dimensional graphics. The ray and all with it may be rotated so just apply a matrix once for a rotation of the whole box, and the box may be represented by a minimum and a maximum point with extrusion. Much of this may be done in parallel and the count of pixels between valid possibilities may allow storage amounts to be known. This may allow accurate representations of higher dimensional objects and once the shape is defined, weighted blended order independent transparency or other drawing techniques may be used. Here, n is the number of dimensions, and n! (factorial) tetrahedra would be needed as compared for the same boxes. Any view may be used for any box. It is likely that trends of lines on the box may further reduce needs for full calculations. This can be done by finding one pixel, the next pixel, and how far the line goes in view. This approach may only be accurate to a precision, but n is so much less than n! for 100 dimensions that it may be worth it. The worst case comes when the box occupies the entire screen and a minimum and maximum needs to be found for every point on every box. Storage can be reused too, but at a time cost of not doing work in parallel, and this takes about 2n times pixels times size of numbers storage too.

X E.