4D vector (source code)

= 4D vector
{wiki=4D_vector}

A 4D vector is a mathematical object that has four components, representing a point or a direction in four-dimensional space. Just as a 3D vector consists of three components (usually denoted as \\((x, y, z)\\)) that correspond to three spatial dimensions, a 4D vector has an additional component, often represented as \\((x, y, z, w)\\).