noc-book-2
noc-book-2 copied to clipboard
relationship between mass and radius
Noting that in my examples I just use a multiplier to tie radius to mass.
this.radius = mass * 8;
Another, perhaps more accurate, way to approach this would be to consider surface area as corresponding to mass which would involve taking the square root (area = πr²
).
this.radius = sqrt(mass) * 8;
This would need to be addressed in the text and examples.
@shiffman - Oh yes, this is a great thing to update as it creates a better visual mapping to the size of the circles.
I decided to add this as an exercise? Maybe it's too easy if I provide this hint?

There is also a reference earlier in the chapter now.

Leaving open for comment.
I did another pass over this language will be published to the new website shortly! Closing!