Scene |
public (Vector2 minimumScreen, Vector2 maximumScreen) BoundingBox3DTo2D( BoundingBox boundingBox, bool adjustByDpiScale = false )
Converts a 3D BoundingBox to the two Vector2 that define the 2D bounding box on the screen.
The matrix to convert 3D points to 2D points is calculated from the used Ab4d.Camera. The matrix value is cached and is only recalculated when the camera is changed.
If the matrix to convert 3D points to 2D points cannot be calculated (for example if the size of this SceneView is not set), the returned points will be Vector2(float.NaN, float.NaN).