• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DemoBytom / DemoEngine / 17778636268

16 Sep 2025 08:48PM UTC coverage: 24.615%. Remained the same
17778636268

push

coveralls.net

web-flow
Merge pull request #450 from DemoBytom/dependabot/dotnet_sdk/develop/dotnet-sdk-9.0.305

Bump dotnet-sdk from 9.0.300 to 9.0.305

96 of 390 relevant lines covered (24.62%)

146584.58 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Demo.Engine.Core/Maths/Interop/RawRectangle.cs
1
// Copyright © Michał Dembski and contributors.
2
// Distributed under MIT license. See LICENSE file in the root for more information.
3

4
using System.Diagnostics;
5
using System.Runtime.InteropServices;
6

7
namespace Demo.Engine.Core.Maths.Interop;
8

9
[DebuggerDisplay("Left: {Left}, Top: {Top}, Right: {Right}, Bottom: {Bottom}")]
10
[StructLayout(LayoutKind.Sequential, Pack = 4)]
11
public struct RawRectangle
12
{
13
    /// <summary>
14
    /// Specifies the x-coordinate of the upper-left corner of the rectangle.
15
    /// </summary>
16
    public int Left;
17

18
    /// <summary>
19
    /// Specifies the y-coordinate of the upper-left corner of the rectangle.
20
    /// </summary>
21
    public int Top;
22

23
    /// <summary>
24
    /// Specifies the x-coordinate of the lower-right corner of the rectangle.
25
    /// </summary>
26
    public int Right;
27

28
    /// <summary>
29
    /// Specifies the y-coordinate of the lower-right corner of the rectangle.
30
    /// </summary>
31
    public int Bottom;
32

33
    /// <summary>
34
    /// The <see cref="RawRectangle"/> structure defines a rectangle by the coordinates of its
35
    /// upper-left and lower-right corners.
36
    /// </summary>
37
    /// <param name="left">x-coordinate of the upper-left corner of the rectangle</param>
38
    /// <param name="top">y-coordinate of the upper-left corner of the rectangle</param>
39
    /// <param name="right">x-coordinate of the lower-right corner of the rectangle</param>
40
    /// <param name="bottom">y-coordinate of the lower-right corner of the rectangle</param>
41
    public RawRectangle(
42
        int left,
43
        int top,
44
        int right,
45
        int bottom)
46
    {
47
        Left = left;
×
48
        Top = top;
×
49
        Right = right;
×
50
        Bottom = bottom;
×
51
    }
×
52

53
    public readonly bool IsEmpty()
54
        => Left == 0
×
55
        && Right == 0
×
56
        && Top == 0
×
57
        && Bottom == 0;
×
58
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc