Extension (Structure)migueldeicaza.swiftgodot 0.45.0all tags
Float (ext)
You’re viewing third-party extensions to Float
, a struct from the Swift standard library.
You can also read the documentation forFloat
itself.
extension Float
Extension in SwiftGodot
Conformances
protocol LinearInterpolation
protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
Instance members
func lerp(to: Float, weight: any BinaryFloatingPoint
) -> Float func toVariantRepresentable(
) -> Double
Type features
static func makeOrUnwrap(Variant
) -> Self? Unwraps an object from a variant.
static func makeOrUnwrap(Variant
) -> Self? Unwraps an object from a variant. This is useful when you want one method to call that will return the unwrapped Variant, regardless of whether it is a SwiftGodot.Object or not.