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

DomCR / ACadSharp / 13724198625

07 Mar 2025 03:46PM UTC coverage: 75.325% (-0.8%) from 76.11%
13724198625

Pull #457

github

web-flow
Merge 094f366de into a1ba04cda
Pull Request #457: Geometric transform

5484 of 8003 branches covered (68.52%)

Branch coverage included in aggregate %.

220 of 606 new or added lines in 40 files covered. (36.3%)

287 existing lines in 14 files now uncovered.

21826 of 28253 relevant lines covered (77.25%)

74153.78 hits per line

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

72.0
/src/ACadSharp/Entities/DimensionAngular2Line.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3

4
namespace ACadSharp.Entities
5
{
6
        /// <summary>
7
        /// Represents a <see cref="DimensionAngular2Line"/> entity.
8
        /// </summary>
9
        /// <remarks>
10
        /// Object name <see cref="DxfFileToken.EntityDimension"/> <br/>
11
        /// Dxf class name <see cref="DxfSubclassMarker.Angular2LineDimension"/>
12
        /// </remarks>
13
        [DxfName(DxfFileToken.EntityDimension)]
14
        [DxfSubClass(DxfSubclassMarker.Angular2LineDimension)]
15
        public class DimensionAngular2Line : Dimension
16
        {
17
                /// <inheritdoc/>
18
                public override ObjectType ObjectType => ObjectType.DIMENSION_ANG_2_Ln;
17✔
19

20
                /// <inheritdoc/>
21
                public override string ObjectName => DxfFileToken.EntityDimension;
39✔
22

23
                /// <inheritdoc/>
24
                public override string SubclassMarker => DxfSubclassMarker.Angular2LineDimension;
2,450✔
25

26
                /// <summary>
27
                /// Definition point for linear and angular dimensions (in WCS).
28
                /// </summary>
29
                [DxfCodeValue(13, 23, 33)]
30
                public XYZ FirstPoint { get; set; }
1,448✔
31

32
                /// <summary>
33
                /// Definition point for linear and angular dimensions (in WCS).
34
                /// </summary>
35
                [DxfCodeValue(14, 24, 34)]
36
                public XYZ SecondPoint { get; set; }
1,448✔
37

38
                /// <summary>
39
                /// Definition point for diameter, radius, and angular dimensions (in WCS).
40
                /// </summary>
41
                [DxfCodeValue(15, 25, 35)]
42
                public XYZ AngleVertex { get; set; }
1,447✔
43

44
                /// <summary>
45
                /// Point defining dimension arc for angular dimensions (in OCS).
46
                /// </summary>
47
                [DxfCodeValue(16, 26, 36)]
48
                public XYZ DimensionArc { get; set; }
1,411✔
49

50
                /// <inheritdoc/>
51
                public override double Measurement
52
                {
53
                        get
54
                        {
36✔
55
                                XY v1 = (XY)(this.SecondPoint - this.FirstPoint);
36✔
56
                                XY v2 = (XY)(this.DefinitionPoint - this.AngleVertex);
36✔
57

58
                                return v1.AngleBetweenVectors(v2);
36✔
59
                        }
36✔
60
                }
61

62
                /// <summary>
63
                /// Default constructor.
64
                /// </summary>
65
                public DimensionAngular2Line() : base(DimensionType.Angular)
358✔
66
                {
358✔
67
                }
358✔
68

69
                /// <inheritdoc/>
70
                public override BoundingBox GetBoundingBox()
71
                {
1✔
72
                        return new BoundingBox(this.FirstPoint, this.SecondPoint);
1✔
73
                }
1✔
74

75
                /// <inheritdoc/>
76
                public override void ApplyTransform(Transform transform)
NEW
77
                {
×
NEW
78
                        base.ApplyTransform(transform);
×
79

NEW
80
                        this.FirstPoint = transform.ApplyTransform(this.FirstPoint);
×
NEW
81
                        this.SecondPoint = transform.ApplyTransform(this.SecondPoint);
×
NEW
82
                        this.AngleVertex = transform.ApplyTransform(this.AngleVertex);
×
NEW
83
                        this.DimensionArc = transform.ApplyTransform(this.DimensionArc);
×
NEW
84
                }
×
85
        }
86
}
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