Skip to content

Commit

Permalink
Remove redundant CGFloat conversion in math helpers (#2346)
Browse files Browse the repository at this point in the history
  • Loading branch information
soo941226 authored Mar 22, 2024
1 parent 41dfe7b commit 833bc7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Private/Utility/Extensions/MathKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ extension CGPoint {

/// Operator convenience to divide points with /
static func / (lhs: CGPoint, rhs: CGFloat) -> CGPoint {
CGPoint(x: lhs.x / CGFloat(rhs), y: lhs.y / CGFloat(rhs))
CGPoint(x: lhs.x / rhs, y: lhs.y / rhs)
}

/// Operator convenience to multiply points with *
static func * (lhs: CGPoint, rhs: CGFloat) -> CGPoint {
CGPoint(x: lhs.x * CGFloat(rhs), y: lhs.y * CGFloat(rhs))
CGPoint(x: lhs.x * rhs, y: lhs.y * rhs)
}

/// Operator convenience to add points with +
Expand Down

0 comments on commit 833bc7b

Please sign in to comment.