Function projectList

projectList(P, model, proj, view) transforms a list of 3D object coordinates $P = p_1, \ldots, p_k$ into window 2D coordinates.

  • Parameters

    • p: Vec3[]

      list of 3D object coordinates (x,y,z)

    • model: Num[][]

      4x4 modelview matrix

    • proj: Num[][]

      4x4 projection matrix

    • view: Vec4

      viewport (x, y, width, height)

    Returns Vec2[]

    List of projected 2D coordinates