API Reference › Math › Math.asin
method

Math.asin

Math.asin(x) -> fixed

Returns the angle in radians whose sine is x, in -pi/2..pi/2. The input should be in -1.0..1.0. Built from Math.atan2 and Math.sqrt, so it is deterministic.

Example

program Demo {
  handler Step phase Update {
    let angle = Math.asin(height / radius)
  }
}
← All symbols