Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2021-10-24 10:22:35

renevanderlende
Member
From: The Netherlands
Registered: 2020-01-06
Posts: 39

Text on a circular path, how to get minimally required r?

Hi All,

I want to place text on a circular path and need to calculate the minimally required radius (r) so all characters fit exactly on the circle.

height of character: y
width of character: x (variable, but considered equal to y for now)
number of characters: n
degrees per character: 360 / n

I could use r = 2y, but that feels like cheating.

How do I calculate the exact value of r?

Update: I think I found it myself

circle circumfence = 2πr
In my case: minimal circumfence = n * x

radius = circumfence / 2π
So minimally required r = (n*x) / 2π

Would that be correct?

Cheers,
Rene

P.S.: I now know how to use trigonometry functions in CSS, should not pose (much of) a problem.

Last edited by renevanderlende (2021-10-24 11:02:18)

Offline

#2 2021-10-24 19:48:30

Bob
Administrator
Registered: 2010-06-20
Posts: 10,619

Re: Text on a circular path, how to get minimally required r?

Hi Rene,

Before I read your update, that's what I thought might work.

Good luck with it.

Bob


Children are not defined by school ...........The Fonz
You cannot teach a man anything;  you can only help him find it within himself..........Galileo Galilei
Sometimes I deliberately make mistakes, just to test you!  …………….Bob smile

Offline

Board footer

Powered by FluxBB