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

DomCR / ACadSharp / 16262122430

14 Jul 2025 08:38AM UTC coverage: 75.03% (-0.02%) from 75.054%
16262122430

Pull #710

github

web-flow
Merge a22ae33b2 into 9d213afc7
Pull Request #710: dimension reference points

5864 of 8589 branches covered (68.27%)

Branch coverage included in aggregate %.

32 of 47 new or added lines in 8 files covered. (68.09%)

23 existing lines in 2 files now uncovered.

23297 of 30277 relevant lines covered (76.95%)

81442.58 hits per line

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

66.67
/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
                /// <summary>
18
                /// Definition point for diameter, radius, and angular dimensions (in WCS).
19
                /// </summary>
20
                [DxfCodeValue(15, 25, 35)]
21
                public XYZ AngleVertex { get; set; }
1,601✔
22

23
                /// <summary>
24
                /// Point defining dimension arc for angular dimensions (in OCS).
25
                /// </summary>
26
                [DxfCodeValue(16, 26, 36)]
27
                public XYZ DimensionArc { get; set; }
1,556✔
28

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

35
                /// <inheritdoc/>
36
                public override double Measurement
37
                {
38
                        get
39
                        {
40✔
40
                                XY v1 = (XY)(this.SecondPoint - this.FirstPoint);
40✔
41
                                XY v2 = (XY)(this.DefinitionPoint - this.AngleVertex);
40✔
42

43
                                return v1.AngleBetweenVectors(v2);
40✔
44
                        }
40✔
45
                }
46

47
                /// <inheritdoc/>
48
                public override string ObjectName => DxfFileToken.EntityDimension;
849✔
49

50
                /// <inheritdoc/>
51
                public override ObjectType ObjectType => ObjectType.DIMENSION_ANG_2_Ln;
17✔
52

53
                /// <summary>
54
                /// Definition point for linear and angular dimensions (in WCS).
55
                /// </summary>
56
                [DxfCodeValue(14, 24, 34)]
57
                public XYZ SecondPoint { get; set; }
1,602✔
58

59
                /// <inheritdoc/>
60
                public override string SubclassMarker => DxfSubclassMarker.Angular2LineDimension;
2,738✔
61

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

69
                /// <inheritdoc/>
70
                public override void ApplyTransform(Transform transform)
71
                {
×
72
                        base.ApplyTransform(transform);
×
73

74
                        this.FirstPoint = transform.ApplyTransform(this.FirstPoint);
×
75
                        this.SecondPoint = transform.ApplyTransform(this.SecondPoint);
×
76
                        this.AngleVertex = transform.ApplyTransform(this.AngleVertex);
×
77
                        this.DimensionArc = transform.ApplyTransform(this.DimensionArc);
×
78
                }
×
79

80
                /// <inheritdoc/>
81
                public override void CalculateReferencePoints()
NEW
82
                {
×
NEW
83
                        throw new System.NotImplementedException();
×
84
                }
85

86
                /// <inheritdoc/>
87
                public override BoundingBox GetBoundingBox()
88
                {
1✔
89
                        return new BoundingBox(this.FirstPoint, this.SecondPoint);
1✔
90
                }
1✔
91
        }
92
}
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