mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-15 22:11:23 +00:00
Add Math.hypot binding (#538)
* Add Number.isNaN() binding * Add binding for Math.hypot()
This commit is contained in:
committed by
Alex Crichton
parent
5a0f8e783b
commit
5fddcf3868
@ -1154,6 +1154,12 @@ extern "C" {
|
||||
#[wasm_bindgen(static_method_of = Math)]
|
||||
pub fn fround(x: f64) -> f32;
|
||||
|
||||
/// The Math.hypot() function returns the square root of the sum of squares of its arguments.
|
||||
///
|
||||
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/fround
|
||||
#[wasm_bindgen(static_method_of = Math)]
|
||||
pub fn hypot(x: f64, y: f64) -> f64;
|
||||
|
||||
/// The Math.imul() function returns the result of the C-like 32-bit multiplication of the
|
||||
/// two parameters.
|
||||
///
|
||||
|
Reference in New Issue
Block a user