Function toHomogeneousMatrix

toHomogeneousMatrix(A) takes a square $n \times n$ matrix $A$ representing a spatial transformation in $A$ dimensions, and returns an $(n+1) \times (n+1)$ matrix representing the same transformation in homogeneous coordinates.

  • Parameters

    • A: Num[][]

      matrix encoding linear transformation

    Returns Num[][]

    Homogeneous transformation matrix