Mobius circle

From IncendiaWiki
Jump to: navigation, search

mobius_circle radius cx cz mr mi
mobius_circle is an Incendia Script command that calculates a mobius transformation from the complex matrix

z*a+b
z*c+d

from a circle of radius r, centered at (cx,cz), with a complex variable m
parameters:
Example script:

;This script defines a set of five mobius transformation.
tform
probability 0.2500

mobius_circle 0.707107 0.0 1.0 1 0
tform
probability 0.2500
mobius_circle 0.707107 0.0 -1.0 1 0

tform
probability 0.2500
mobius_circle 0.707107 1.0 0.0 1 0

tform
probability 0.2500
mobius_circle 0.707107 -1.0 0.0 1 0

tform
probability 0.2500
;change the last parameter from 0.0 to 0.1 to get some spirals
mobius_circle 0.292893 0.0 0.0 1.0 0.0