[SOLVED] Why worldToScreen returns a Vec3

Hi, I’m just wondering why worldToScreen returns a Vec3 and not a Vec2.

What does the third vector (z) represent in this case?

I’m trying to convert 3d positions to 2d positions on screen.

only use x and y from it if you don’t need the depth in screen space.

Okay, so its just zIndex or something? Cheers