Skip to main content
gamedev.net
🔒 Locked

iterative function system

Started by Omicron 0 replies 200+ views
Original Post
Omicron
Omicron
Im working on a program that uses ifs in order to create an object. Im already have my program done, but i still don't quite understand how you get the numbers. Here the part of the code from my program. Koch(0, .5*y, level -1); Koch(.42*x + -.42*y, .42*x + .42*y + .2, level -1); Koch(.42*x + .42*y, -.42*x + .42*y + .2, level -1); Koch(.1*x, .1*y + .2, level -1); I got the numbers to create this tree http://www.bluesfear.com/temp/tree.gif from another website while trying to find an explination of how to get the numbers. Anyway if anyone could help me out or list some links that help explain this, it would be greatly appreciated. [edited by - Omicron on November 20, 2003 8:32:34 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.