Skip to content

Add Math.hypot binding #538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 23, 2018
Merged

Add Math.hypot binding #538

merged 4 commits into from
Jul 23, 2018

Conversation

twilco
Copy link
Contributor

@twilco twilco commented Jul 23, 2018

Adds Math.hypot() binding for #275.

@alexcrichton alexcrichton merged commit 5fddcf3 into rustwasm:master Jul 23, 2018
@alexcrichton
Copy link
Contributor

Awesome, thanks!

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes indeed! @jontro want to file a follow-up PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! #567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants