math
· Rotation in 3D. That works in 2D, while in 3D we need to take in to account the third axis. Rotating a vector around the origin (a point) in 2D simply means rotating it around the Zaxis (a line) in 3D; since we're rotating around Zaxis, its coordinate should be kept constant 0° (rotation happens on the XY plane in 3D).