Returns the angle whose cosine is the specified number.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static double Acos(
double d
)
Parameters
- d
- Type: SystemDouble
A number representing a cosine, where d must be greater than or equal to -1, but less than or equal to 1.
Return Value
Type:
DoubleAn angle, θ, measured in radians, such that 0 ≤θ≤π-or-
NaN if
d < -1 or
d > 1 or
d equals
NaN.
See Also