Skip to content

negate an index#16

Open
Fil wants to merge 1 commit intotopojson:masterfrom
Fil:patch-1
Open

negate an index#16
Fil wants to merge 1 commit intotopojson:masterfrom
Fil:patch-1

Conversation

@Fil
Copy link

@Fil Fil commented Dec 27, 2019

No description provided.

@mbostock
Copy link
Member

You’d only negate a negative arc index, though. Why change the wording?

@Fil
Copy link
Author

Fil commented Dec 27, 2019

There must be something I don't understand :)

In https://observablehq.com/@fil/ocean I'm negating all indices because I want to run the arcs with the feet in the ocean and the coast on my left hand.

@Fil
Copy link
Author

Fil commented Dec 28, 2019

OK the context is for when we consume a topojson. It might be a bit clearer as:
"In JavaScript, you can retrieve the actual arc index from a negative index i using the bitwise NOT operator, ~i."

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.

2 participants