Преглед на файлове

Understood my lord codefactor

CPKreuz преди 2 години
родител
ревизия
b9bf670fe6
променени са 2 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 0 1
      src/ChunkyImageLib/DataHolders/ShapeCorners.cs
  2. 1 1
      src/PixiEditor.DrawingApi.Core/Numerics/VecD.cs

+ 0 - 1
src/ChunkyImageLib/DataHolders/ShapeCorners.cs

@@ -222,5 +222,4 @@ public struct ShapeCorners
         // All projections overlap, so the shapes intersect
         return true;
     }
-
 }

+ 1 - 1
src/PixiEditor.DrawingApi.Core/Numerics/VecD.cs

@@ -135,7 +135,7 @@ public struct VecD : IEquatable<VecD>
         return (X * other.Y) - (Y * other.X);
     }
 
-    public double Dot(VecD other) => X * other.X + Y * other.Y;
+    public double Dot(VecD other) => (X * other.X) + (Y * other.Y);
     
     public VecD Multiply(VecD other)
     {