소스 검색

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)
     {