Skip to content

Commit

Permalink
API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldeicaza committed Feb 27, 2024
1 parent dee6fa2 commit ebc26d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftGodot/Native/RotationConversion.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Foundation

extension BinaryFloatingPoint {
/// Convert given degrees value to radians.
/// Converts this floating point value assumed to be in degrees to radians.
public var degreesToRadians: Self {
return self / 180 * .pi
}

/// Convert given radians value to degrees.
/// Convert this floating point value assumed to be in radians to degrees.
public var radiansToDegrees: Self {
return self * 180 / .pi
}
Expand Down

0 comments on commit ebc26d0

Please sign in to comment.