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

DomCR / ACadSharp / 19034372593

03 Nov 2025 12:16PM UTC coverage: 77.769% (-0.04%) from 77.805%
19034372593

push

github

web-flow
Merge pull request #853 from DomCR/transform-hatch

Transform hatch

6958 of 9743 branches covered (71.42%)

Branch coverage included in aggregate %.

54 of 112 new or added lines in 8 files covered. (48.21%)

12 existing lines in 7 files now uncovered.

26762 of 33616 relevant lines covered (79.61%)

101813.81 hits per line

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

23.08
/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; }
22,492✔
17

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

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

26
                                /// <inheritdoc/>
27
                                public override void ApplyTransform(Transform transform)
28
                                {
×
NEW
29
                                        this.Start = transform.ApplyTransform(this.Start.Convert<XYZ>()).Convert<XY>();
×
NEW
30
                                        this.End = transform.ApplyTransform(this.End.Convert<XYZ>()).Convert<XY>();
×
UNCOV
31
                                }
×
32

33
                                /// <inheritdoc/>
34
                                public override BoundingBox GetBoundingBox()
35
                                {
×
36
                                        return BoundingBox.FromPoints([(XYZ)this.Start, (XYZ)this.End]);
×
37
                                }
×
38

39
                                /// <inheritdoc/>
40
                                public override Entity ToEntity()
NEW
41
                                {
×
NEW
42
                                        return new Entities.Line(this.Start, this.End);
×
NEW
43
                                }
×
44
                        }
45
                }
46
        }
47
}
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