Example: Get the View Vector

This example demonstrates using the active View Vector of the viewer.

When any view changes position or direction, you can retrieve that view's position using the getViewVector() function. The return value is a CoordinatePart with 3 coordinates :