func hypotenuse(_ a: Double, _ b: Double) -> Double { return (a * a + b * b).squareRoot() }
Swift โฉ Numbers and Basic Values โฉ Numeric Protocols โฉ FloatingPoint
.squareRoot()
๐ ฟ๏ธ Vector2D
Last updated 2 years ago