func hypotenuse(_ a: Double, _ b: Double) -> Double { return (a * a + b * b).squareRoot() }
Swift โฉ Numbers and Basic Valuesarrow-up-right โฉ Numeric Protocolsarrow-up-right โฉ FloatingPointarrow-up-right
.squareRoot()arrow-up-right
๐ ฟ๏ธ Vector2D
Last updated 4 years ago