How to distribute points evenly on the surface of hyperspheres in higher dimensions?

Very interesting question. I wanted to implement this into mine 4D rendering engine as I was curious how would it look like but I was too lazy and incompetent to handle ND transcendent problems from the math side. Instead I come up with different solution to this problem. Its not a Fibonaci Latice !!! Instead … Read more

Simple physics-based movement

I found this question very interesting since I had recently done some work on modeling projectile motion with drag. Point 1: You are essentially updating the position and velocity using an explicit/forward Euler iteration where each new value for the states should be a function of the old values. In such a case, you should … Read more

Is there a difference between a “finite state machine” and a “state machine”?

I’m not sure I understand if there is a difference between a finite state machine and a state machine? Am I thinking about this too hard? Yes, you are thinking about it too hard. 🙂 It depends on context. Obviously, taken literally, the term “finite state machine” indicates a finite number of states, while “state … Read more

Value Remapping

From your description, it ought to be doing this, right? low2 + (value – low1) * (high2 – low2) / (high1 – low1) Find how far you are into the first range, scale that distance by the ratio of sizes of the ranges, and that’s how far you should be into the second range.

Arithmetic Overflow vs. Arithmetic Carry

Overflow flags get set when the register cannot properly represent the result as a signed value (you overflowed into the sign bit). Carry flags are set when the register cannot properly represent the result as an unsigned value (no sign bit required).

Why is the range of signed byte is from -128 to 127 (2’s complement) and not from -127 to 127?

Why is the range of unsigned byte is from -128 to 127? It’s not. An unsigned byte (assuming 8-bit) is from 0 to 255. The range of a signed byte using 2’s complement is from -128 to 127, directly from the definition of 2’s complement: 01111111 = +127 01111110 = +126 01111101 = +125 … … Read more

tech