Implementation of 2d and 3d points.