Cycloids

From Odwiki

Jump to: navigation, search


Contents

Cycloids

Cycloids are curves defined by a fixed point on a wheel as it rolls along a curve or straight line. Several mathematicans in the 15-16th century studied them in detail. Although they are quite intresting from the math point of view, they are for most of you even more intresting to create nice swirling particle effects and alike.
Usually we find these function in the following form like this (implicit):

x = a arccos ((a-y)/a) - sqrt(y(2a-y))

For Animationpaths this is usually of little usage unfortunally, therefore we need to 'seperate' this function, so we have no dependencies of x and y and can calculate each value seperatly. This involves some math trickery, i.e. I'll skip it and directly give the result. For the function above I'd write:

x = a (t - sin t)
y = a (1 - cos t)

For free paremeters I'll use the variables a,b,c and you can replace them with any number ∈ R unless noted otherwise.

  • Usage: Simply write write a expression for the translate channels of the object you intend to animate. For the function above we could do the following:
We choose a = 2 and place according to the formula the following expressions:
TranslateY = 2 * ($F - sin($F))
TranslateZ = 2 * ($1 - cos($F))
Looks intresting, doesn't it?

Ordinary Cycloid

The simplest cycloid that is around.

  • x = a arccos ((a-y)/a) - sqrt(y(2a-y)) with a > 0
  • x = a (t - sin t)
y = a (1 - cos t)

Trochoids

Trochoids are elongated or shortend cycloids

  • x = at - c sin t
y = a - c cos t
elongated cycloid: c > a
shortend cycloid: c < a

Epicycloid

  • x² + y² = (a+user posted image² + b² - 2b(a+user posted image cos(a² t / b²)
  • x = (a+user posted image cos t - b cos((a+user posted imaget/b)
y = (a+user posted image sin t - b sin((a+user posted imaget/b)

Epitrochoids

Similar to Trochoids, Exitrochoids are the elongated or shortend version of epicycloids

  • x = (a+user posted image cos t - c cos((a+user posted imaget/b)
y = (a+user posted image sin t - c sin((a+user posted imaget/b)
elongated epicycloid: c > b
shortend epicycloid: c < b

Cardioid

The ratio m of a/b gives the number of cusps in thte epicycloids. With one cusp the resulting curves resembles a heartshape and thus the name, i.e. m = 1.

Hypocycloid

  • x = (a-user posted image cos t + b cos((a-user posted imaget/b)
y = (a-user posted image sin t - b sin((a-user posted imaget/b)

with a > b m = a/b

Astroid

for m = 4 we can rewrite the equation like this:

  • x = a cos³(t)
y = a sin³(t)

Hypotrochoids

  • x = (a-user posted image cos t + c cos((a-user posted imaget/b)
y = (a-user posted image sin t - c sin((a-user posted imaget/b)
elongated Hypotrochoid: c > b
shortend Hypotrochoid: c < b

Lissajous-Functions

Though no cycloids, Lissajous figures / functions are a superposition of harmonic functions and are cyclic.

Circle

  • x = a sin (wt)
y = a sin(wt - pi/2) = cos (wt)

Figure 1

  • x = a sin (wt)
y = a sin (2wt - pi/4)

Figure 2

  • x = a sin (2wt)
y = a sin (3wt)
© 2009 od[force].net | advertise