mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-07-02 19:13:43 -04:00
Add .editorconfig and apply formatting
This commit is contained in:
@ -1,29 +1,28 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Raylib_cs
|
||||
namespace Raylib_cs;
|
||||
|
||||
/// <summary>
|
||||
/// Rectangle type
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct Rectangle
|
||||
{
|
||||
/// <summary>
|
||||
/// Rectangle type
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct Rectangle
|
||||
public float X;
|
||||
public float Y;
|
||||
public float Width;
|
||||
public float Height;
|
||||
|
||||
public Rectangle(float x, float y, float width, float height)
|
||||
{
|
||||
public float X;
|
||||
public float Y;
|
||||
public float Width;
|
||||
public float Height;
|
||||
this.X = x;
|
||||
this.Y = y;
|
||||
this.Width = width;
|
||||
this.Height = height;
|
||||
}
|
||||
|
||||
public Rectangle(float x, float y, float width, float height)
|
||||
{
|
||||
this.X = x;
|
||||
this.Y = y;
|
||||
this.Width = width;
|
||||
this.Height = height;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{{X:{X} Y:{Y} Width:{Width} Height:{Height}}}";
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{{X:{X} Y:{Y} Width:{Width} Height:{Height}}}";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user