File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Sources/CodeEditTextView/Extensions Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,6 @@ extension NSBezierPath {
6767 let unitVector1 = distance1 > 0 ? NSPoint ( x: vector1. x / distance1, y: vector1. y / distance1) : NSPoint . zero
6868 let unitVector2 = distance2 > 0 ? NSPoint ( x: vector2. x / distance2, y: vector2. y / distance2) : NSPoint . zero
6969
70- // This uses the dot product formula: cos(θ) = (u1 • u2),
71- // where u1 and u2 are unit vectors. The result will range from -1 to 1:
72- let angleCosine = unitVector1. x * unitVector2. x + unitVector1. y * unitVector2. y
73-
7470 // Calculate the corner start and end
7571 let cornerStart = NSPoint ( x: p1. x - unitVector1. x * radius, y: p1. y - unitVector1. y * radius)
7672 let cornerEnd = NSPoint ( x: p1. x + unitVector2. x * radius, y: p1. y + unitVector2. y * radius)
You can’t perform that action at this time.
0 commit comments