How to convert 3D coordinates to 2D coordinates in Blender Game Engine

Please let me know if it is possible.

2d is a part of 3d. no convert needed.

please be specific. theres another thread just like this one.

cam.getScreenPosition(pos)

yeah please be clearer.

what kind of 2d coordinate and where

Yes, it is possible.

As the others wrote you need to define what 2D you are referring to.

XY-plane, XZ-plane, YZ-plane, screen-projection, sphere …

Sorry guys, my bad. I want to refer to the camera 2D coordinates. I meant can I get the 2D coordinates of an objects in the camera view.

https://docs.blender.org/api/blender_python_api_current/bge.types.KX_Camera.html#bge.types.KX_Camera.getScreenPosition

Thank you all, guys!!