[csswg-drafts] [css-values] Make 'hypot()' n-dimensional (#3765)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values] Make 'hypot()' n-dimensional ==
From https://drafts.csswg.org/css-values-4/#funcdef-hypot,

> The `hypot(A,B)` function contains two comma-separated calculations A and B, and returns the length of the hypotenuse of a right-angled triangle with legs equal to A and B.

I would like to generalize this to the [euclidean norm](https://en.wikipedia.org/wiki/Norm_(mathematics)#Euclidean_norm) like in JS [`Math.hypot`](https://tc39.github.io/ecma262/#sec-math.hypot). Then
 - `hypot(A)` would be the absolute value of A
 - `hypot(A, B)` would be the hypotenuse of a right-angled triangle with legs equal to A and B.
 - `hypot(A, B, C)` would be the length of the space diagonal of a rectangular cuboid with edge lengths A, B and C.
 - and possibly more (though maybe not as useful as the previous cases).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3765 using your GitHub account

Received on Tuesday, 26 March 2019 14:43:55 UTC