mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2026-08-15 15:07:48 +04:00
19 lines
359 B
C#
19 lines
359 B
C#
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;
|
||
|
|
}
|