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

DomCR / ACadSharp / 13831346064

13 Mar 2025 09:32AM UTC coverage: 75.391% (-0.8%) from 76.2%
13831346064

Pull #457

github

web-flow
Merge 2f935af9c into e0bc2deb0
Pull Request #457: Geometric transform

5515 of 8037 branches covered (68.62%)

Branch coverage included in aggregate %.

255 of 648 new or added lines in 40 files covered. (39.35%)

303 existing lines in 16 files now uncovered.

21941 of 28381 relevant lines covered (77.31%)

73859.97 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