kOS.Suffixed.VectorRenderer.GetViewportPosFor C# (CSharp) Метод

GetViewportPosFor() приватный Метод

Get the position in screen coordinates that the 3d world coordinates project onto, abstracting the two different ways KSP has to access the camera depending on view mode. Returned coords are in a system where the screen viewport goes from (0,0) to (1,1) and the Z coord is how far from the screen it is (-Z means behind you).
private GetViewportPosFor ( Vector3 v ) : Vector3
v Vector3
Результат Vector3
        private Vector3 GetViewportPosFor(Vector3 v)
        {
            var cam = Utils.GetCurrentCamera();
            return cam.WorldToViewportPoint(v);
        }