Skip to content

Commit

Permalink
Fix point calculation for twoWayOffset due to wrong angle direction
Browse files Browse the repository at this point in the history
  • Loading branch information
OdNairy committed Apr 28, 2023
1 parent d560b57 commit cbd30a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Hammer/Utilties/CoreGraphic+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extension CGPoint {
func twoWayOffset(_ distance: CGFloat, angle radians: CGFloat) -> [CGPoint] {
return [
self.offset(distance / 2, angle: radians),
self.offset(distance / 2, angle: .pi - radians),
self.offset(distance / 2, angle: .pi + radians),
]
}

Expand Down

0 comments on commit cbd30a2

Please sign in to comment.