Extension (Protocol)migueldeicaza.swiftgodot 0.45.0all tags
BinaryFloatingPoint (ext)
You’re viewing third-party extensions to BinaryFloatingPoint
, a protocol from the Swift standard library.
You can also read the documentation forBinaryFloatingPoint
itself.
extension BinaryFloatingPoint
Extension in SwiftGodot
Instance members
var degreesToRadians: Self
Converts this floating point value assumed to be in degrees to radians.
var radiansToDegrees: Self
Convert this floating point value assumed to be in radians to degrees.
func inverseLerp(from: Self, to: Self
) -> any BinaryFloatingPoint Inverse linear interpolation. ‘self’ is the result of a lerp from - to of an unknown weight Calling this function calculates the weight value that was used.