mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-06-09 10:06:34 +02:00
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
@@ -23,8 +23,7 @@ namespace Robust.Shared.Maths
|
||||
public readonly int Width => Math.Abs(Right - Left);
|
||||
public readonly int Height => Math.Abs(Top - Bottom);
|
||||
public readonly Vector2i Size => new(Width, Height);
|
||||
public readonly Vector2 Center => TopRight - BottomLeft / 2;
|
||||
|
||||
public readonly Vector2 Center => new Vector2(Left + Right, Top + Bottom) / 2f;
|
||||
public UIBox2i(Vector2i topLeft, Vector2i bottomRight)
|
||||
{
|
||||
Unsafe.SkipInit(out this);
|
||||
|
||||
Reference in New Issue
Block a user