< Summary - ReFlex - Library

Information
Class: ReFlex.Core.Common.Components.Rectangle
Assembly: ReFlex.Core.Common
File(s): D:\a\reflex\reflex\library\src\Core\Common\Components\Rectangle.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 16
Coverable lines: 16
Total lines: 29
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 6
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Left()100%210%
get_Right()100%210%
get_Top()100%210%
get_Bottom()100%210%
.ctor()100%210%
.ctor(...)100%210%
Contains(...)100%210%
Contains(...)0%4260%

File(s)

D:\a\reflex\reflex\library\src\Core\Common\Components\Rectangle.cs

#LineLine coverage
 1namespace ReFlex.Core.Common.Components
 2{
 3    public class Rectangle
 4    {
 05        public float Left { get; set; }
 6
 07        public float Right { get; set; }
 8
 09        public float Top { get; set; }
 10
 011        public float Bottom { get; set; }
 12
 013        public Rectangle() : this(0, 0, 0, 0)
 014        {
 015        }
 16
 017        public Rectangle(float left, float right, float bottom, float top)
 018        {
 019            Left = left;
 020            Right = right;
 021            Bottom = bottom;
 022            Top = top;
 023        }
 24
 025        public bool Contains(Point2 point) => Contains(point.X, point.Y);
 26
 027        public bool Contains(float x, float y) => x > Left && x < Right && y > Bottom && y < Top;
 28    }
 29}