mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2026-08-15 15:07:48 +04:00
qol
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user