Groups
Category
Integer overflow happens when a computed value exceeds the range of its type; in C++ this silently wraps for unsigned and is undefined for signed, so prevention is crucial.
A 2D point can be treated as a vector from the origin, so vector math (addition, scaling, dot, cross) applies directly to points.