Skip to content

Commit

Permalink
Update AnimatableArray.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
flocked committed Apr 17, 2024
1 parent 1df7cff commit 8440c18
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Sources/Anima/AnimatableProperty/AnimatableArray.swift
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,10 @@ extension AnimatableArray: VectorArithmetic & AdditiveArithmetic {
}

extension AnimatableArray: ApproximateEquatable where Element: FloatingPointInitializable {
public func isApproximatelyEqual(to other: Self, epsilon: Element) -> Bool {
for index in 0..<count {
guard let other = other[safe: index], self[index].isApproximatelyEqual(to: other, epsilon: epsilon) else { return false }
}
return true
}
public func isApproximatelyEqual(to other: Self, epsilon: Element) -> Bool {
for index in 0..<count {
guard let other = other[safe: index], self[index].isApproximatelyEqual(to: other, epsilon: epsilon) else { return false }
}
return true
}
}

0 comments on commit 8440c18

Please sign in to comment.