Skip to content

Commit

Permalink
Merge pull request #456 from DomCR/submodule-fix
Browse files Browse the repository at this point in the history
build fix
  • Loading branch information
DomCR authored Sep 24, 2024
2 parents 5ea50a4 + 9db2387 commit 4d8a6e5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ACadSharp.Tests/IO/IOTestsBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected static void loadSamples(string folder, string ext, TheoryData<FileMode
files.Add(new FileModel(file));
}

if (!files.Any())
if (files.Count == 0)
{
files.Add(new FileModel());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ private bool readDimension(CadEntityTemplate template, DxfMap map, string subcla
case 50:
var dim = new DimensionLinear();
tmp.SetDimensionObject(dim);
dim.Rotation = CSMath.MathUtils.DegToRad(this._reader.ValueAsDouble);
dim.Rotation = CSMath.Utilities.DegToRad(this._reader.ValueAsDouble);
map.SubClasses.Add(DxfSubclassMarker.LinearDimension, DxfClassMap.Create<DimensionLinear>());
return true;
case 70:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ private bool readDimensionStyle(CadTableEntryTemplate<DimensionStyle> template,
template.CadObject.FixedExtensionLineLength = this._reader.ValueAsDouble;
return true;
case 50:
template.CadObject.JoggedRadiusDimensionTransverseSegmentAngle = CSMath.MathUtils.DegToRad(this._reader.ValueAsDouble);
template.CadObject.JoggedRadiusDimensionTransverseSegmentAngle = CSMath.Utilities.DegToRad(this._reader.ValueAsDouble);
return true;
case 69:
template.CadObject.TextBackgroundFillMode = (DimensionTextBackgroundFillMode)this._reader.ValueAsShort;
Expand Down
2 changes: 1 addition & 1 deletion src/ACadSharp/MathUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static XY GetCenter(XY start, XY end, double bulge, out double radius)

double gamma = (Math.PI - theta) / 2;
double phi = (end - start).GetAngle() + Math.Sign(bulge) * gamma;
return new XY(start.X + radius * CSMath.MathUtils.Cos(phi), start.Y + radius * CSMath.MathUtils.Sin(phi));
return new XY(start.X + radius * CSMath.Utilities.Cos(phi), start.Y + radius * CSMath.Utilities.Sin(phi));
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/ACadSharp/Tables/DimensionStyle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ public double JoggedRadiusDimensionTransverseSegmentAngle
set
{
//5 - 90
if (value < CSMath.MathUtils.DegToRad(5) || value > Math.PI / 2)
if (value < CSMath.Utilities.DegToRad(5) || value > Math.PI / 2)
{
throw new ArgumentOutOfRangeException(nameof(value), value, $"The {nameof(JoggedRadiusDimensionTransverseSegmentAngle)} must be in range of 5 to 90 degrees.");
}
Expand Down

0 comments on commit 4d8a6e5

Please sign in to comment.