This commit is contained in:
bird_egop
2026-06-05 20:47:57 +03:00
parent 195e6d71bd
commit 614787789e
11 changed files with 446 additions and 42 deletions
@@ -0,0 +1,18 @@
using System.Numerics;
namespace NResUI.Rendering.Viewport;
public readonly struct ViewportBounds
{
public Vector3 Min { get; }
public Vector3 Max { get; }
public ViewportBounds(Vector3 min, Vector3 max)
{
Min = min;
Max = max;
}
public Vector3 Center => (Min + Max) * 0.5f;
public Vector3 Size => Max - Min;
}