SyntaxBomb - Indie Coders

Languages & Coding => Blitz2D, BlitzPlus, Blitz3D => Topic started by: JBR on April 05, 2021, 23:45:04

Title: Trefoil Knot ....
Post by: JBR on April 05, 2021, 23:45:04
Hi,

For the Trefoil knot I have


x0# = Sin(t) + 2*Sin(2*t)
y0# = Cos(t) - 2*Cos(2*t)
z0# = -Sin(3*t)


which works perfectly.

What I'm looking for a is a similar method for a Pentafoil knot, also called Cinquefoil knot.

Anyone have an idea ideally of the same format. t = [0,360].

Thanks, Jim.
Title: Re: Trefoil Knot ....
Post by: Dan on April 07, 2021, 08:38:16
Here they have a JS code of it: https://www.keanw.com/2013/07/more-knots-in-tinkercad-using-javascript.html
Title: Re: Trefoil Knot ....
Post by: JBR on April 07, 2021, 23:19:35
Thanks Dan.