A lattice is the set of all integer linear combinations of basis vectors b1 and b2. Drag the vector endpoints on the canvas or use the sliders to reshape the lattice. Click LLL Reduce to find a shorter, more orthogonal basis. Click anywhere on the canvas to solve the Closest Vector Problem for that target point.
Drag arrow tips to reshape the basis. Click empty space for CVP. Scroll to zoom.

Basis Vectors




Statistics

b1 (3.0, 1.0)
b2 (1.0, 3.0)
|det(B)| 8.00
||b1|| 3.16
||b2|| 3.16
Shortest vector 3.16
Orth. defect 1.00
Hermite factor 1.12