mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
798 B
Swift
18 lines
798 B
Swift
@_exported import _math
|
|
|
|
// Constants defined by <math.h>
|
|
@available(swift, deprecated: 3.0, message: "Please use 'Double.pi' or '.pi' to get the value of correct type and avoid casting.")
|
|
public let M_PI = Double.pi
|
|
|
|
@available(swift, deprecated: 3.0, message: "Please use 'Double.pi / 2' or '.pi / 2' to get the value of correct type and avoid casting.")
|
|
public let M_PI_2 = Double.pi / 2
|
|
|
|
@available(swift, deprecated: 3.0, message: "Please use 'Double.pi / 4' or '.pi / 4' to get the value of correct type and avoid casting.")
|
|
public let M_PI_4 = Double.pi / 4
|
|
|
|
@available(swift, deprecated: 3.0, message: "Please use '2.squareRoot()'.")
|
|
public let M_SQRT2 = 2.squareRoot()
|
|
|
|
@available(swift, deprecated: 3.0, message: "Please use '0.5.squareRoot()'.")
|
|
public let M_SQRT1_2 = 0.5.squareRoot()
|