HPOINTS = iat_homogeneous_coords(POINTS, DIM)

iat_homogeneous_coords converts DIM-dimensional into homogeneous coordinates by adding an extra coordinate at each point (column) of POINTS. To avoid rescaling all coordinates, the extra coordinate is equal to one. DIM should be given when it comes to more than two dimensions.

Input arguments

POINTS DIMxN array of N DIM-dimensional points
DIM The dimensionality of points (default: 2)

Output arguments

HPOINTS (DIM+1)xN array that contains the points of POINTS with homogeneous coordinates.

Back to Index