... got it wrong
This commit is contained in:
parent
9405ba1b4e
commit
303fa869a8
2 changed files with 6 additions and 10 deletions
|
|
@ -9,13 +9,13 @@ const PointCartesian2D = nominalType(
|
|||
// just a unique number, to make sure that our type is only equal to itself
|
||||
"PointCartesian2D")
|
||||
// BigInt("0xBBAAD62B10EE21993BA690A732DA2A6875CE4B6F5E7139D5AEC9FD887F9D24A8"))
|
||||
(prodType(String, Double));
|
||||
(prodType(Double, Double));
|
||||
|
||||
const PointPolar2D = nominalType(
|
||||
// just a unique number, to make sure that our type is only equal to itself
|
||||
"PointPolar2D")
|
||||
// BigInt("0x31CDAB4B3D84C4EB27D3C111FD7580E533268B72E05BD694F8B262913E018B72"))
|
||||
(prodType(String, Double));
|
||||
(prodType(Double, Double));
|
||||
|
||||
export const cart2polar = ({left: x, right: y}) => {
|
||||
const r = Math.sqrt(x*x + y*y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue