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

DomCR / ACadSharp / 20915025320

12 Jan 2026 09:55AM UTC coverage: 77.095% (-0.08%) from 77.172%
20915025320

Pull #943

github

web-flow
Merge dbba91259 into 1db475088
Pull Request #943: Fixes #942 - Added ToDegrees() to handle angular string representation

7921 of 11129 branches covered (71.17%)

Branch coverage included in aggregate %.

13 of 13 new or added lines in 3 files covered. (100.0%)

138 existing lines in 8 files now uncovered.

28864 of 36585 relevant lines covered (78.9%)

149608.29 hits per line

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

47.37
/src/ACadSharp/Entities/Hatch.BoundaryPath.Line.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3

4
namespace ACadSharp.Entities
5
{
6
        public partial class Hatch
7
        {
8
                public partial class BoundaryPath
9
                {
10
                        public class Line : Edge
11
                        {
12
                                /// <summary>
13
                                /// Endpoint (in OCS)
14
                                /// </summary>
15
                                [DxfCodeValue(11, 21)]
16
                                public XY End { get; set; }
19,520✔
17

18
                                /// <summary>
19
                                /// Start point (in OCS)
20
                                /// </summary>
21
                                [DxfCodeValue(10, 20)]
22
                                public XY Start { get; set; }
19,520✔
23

24
                                public override EdgeType Type => EdgeType.Line;
450✔
25

26
                                /// <summary>
27
                                /// Initializes a new instance of the Line class.
28
                                /// </summary>
29
                                public Line() { }
20,409✔
30

31
                                /// <summary>
32
                                /// Initializes a new instance of the Line class using the specified line entity.
33
                                /// </summary>
34
                                /// <param name="line">The line entity from which to initialize the start and end points. Cannot be null.</param>
35
                                public Line(Entities.Line line)
10✔
36
                                {
10✔
37
                                        this.Start = line.StartPoint.Convert<XY>();
10✔
38
                                        this.End = line.EndPoint.Convert<XY>();
10✔
39
                                }
10✔
40

41
                                /// <inheritdoc/>
42
                                public override void ApplyTransform(Transform transform)
43
                                {
×
UNCOV
44
                                        this.Start = transform.ApplyTransform(this.Start.Convert<XYZ>()).Convert<XY>();
×
UNCOV
45
                                        this.End = transform.ApplyTransform(this.End.Convert<XYZ>()).Convert<XY>();
×
UNCOV
46
                                }
×
47

48
                                /// <inheritdoc/>
49
                                public override BoundingBox GetBoundingBox()
UNCOV
50
                                {
×
UNCOV
51
                                        return BoundingBox.FromPoints([(XYZ)this.Start, (XYZ)this.End]);
×
UNCOV
52
                                }
×
53

54
                                /// <inheritdoc/>
55
                                public override Entity ToEntity()
UNCOV
56
                                {
×
UNCOV
57
                                        return new Entities.Line(this.Start, this.End);
×
UNCOV
58
                                }
×
59
                        }
60
                }
61
        }
62
}
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

© 2026 Coveralls, Inc