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

DomCR / ACadSharp / 14214082189

02 Apr 2025 07:34AM UTC coverage: 75.523% (-0.8%) from 76.343%
14214082189

Pull #457

github

web-flow
Merge b2c68aa3f into 04434c5d6
Pull Request #457: Geometric transform

5606 of 8150 branches covered (68.79%)

Branch coverage included in aggregate %.

282 of 716 new or added lines in 47 files covered. (39.39%)

318 existing lines in 23 files now uncovered.

22348 of 28864 relevant lines covered (77.43%)

72757.24 hits per line

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

66.67
/src/ACadSharp/Entities/XLine.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3

4
namespace ACadSharp.Entities
5
{
6
        /// <summary>
7
        /// Represents a <see cref="XLine"/> entity.
8
        /// </summary>
9
        /// <remarks>
10
        /// Object name <see cref="DxfFileToken.EntityXline"/> <br/>
11
        /// Dxf class name <see cref="DxfSubclassMarker.XLine"/>
12
        /// </remarks>
13
        [DxfName(DxfFileToken.EntityXline)]
14
        [DxfSubClass(DxfSubclassMarker.XLine)]
15
        public class XLine : Entity
16
        {
17
                /// <summary>
18
                /// Unit direction vector(in WCS).
19
                /// </summary>
20
                [DxfCodeValue(11, 21, 31)]
21
                public XYZ Direction { get; set; }
1,388✔
22

23
                /// <summary>
24
                /// First point(in WCS).
25
                /// </summary>
26
                [DxfCodeValue(10, 20, 30)]
27
                public XYZ FirstPoint { get; set; }
1,388✔
28

29
                /// <inheritdoc/>
30
                public override string ObjectName => DxfFileToken.EntityXline;
39✔
31

32
                /// <inheritdoc/>
33
                public override ObjectType ObjectType => ObjectType.XLINE;
1✔
34

35
                /// <inheritdoc/>
36
                public override string SubclassMarker => DxfSubclassMarker.XLine;
2,246✔
37

38
                /// <inheritdoc/>
39
                public override void ApplyTransform(Transform transform)
NEW
40
                {
×
NEW
41
                        this.FirstPoint = transform.ApplyTransform(this.FirstPoint);
×
NEW
42
                        this.Direction = transform.Rotate(this.Direction);
×
NEW
43
                }
×
44

45
                /// <inheritdoc/>
46
                public override BoundingBox GetBoundingBox()
47
                {
1✔
48
                        return BoundingBox.Infinite;
1✔
49
                }
1✔
50
        }
51
}
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