Math.Asin Method

Returns the angle that corresponds to a specified sine value.

...Math.Asin(sine )

Prerequisites

None

Parameters

sine

A required expression that evaluates to the sine of an angle. This value must be in the range –1 <= sine <= 1.

Remarks

Returns the angle, in radians, that corresponds to a specified sine value. That is, if the sine of an angle A is B, then this arc sine function returns A when given a value of B. Since the sine function repeats the same series of answers when an angle traverses from π/2 to 0 to –π/2 as when an angle moves from π/2 to –π to –π/2, the Math.Asin function cannot distinguish these two cases and always returns values that range from π/2 to -π/2. If the full range of angles is required, the Math.Atan2 method should be used whenever possible. To convert radians to degrees, multiply the radians times 180/π.

Examples

Dim angle As Single
angle = Math.Asin(-1) ' Sets angle to –Pi/2
angle = Math.Asin(Math.Sqrt(2)/2) ' Sets angle to Pi/4
angle = Math.Asin(Math.Sin(Math.PI-.5)) ' Sets angle to 0.5 radians

See Also

Math Class | Math.Atan2