Julia Set Homework
Julia Set Homework
项目类别:计算机

· a constructor where the real and imaginary parts are specified as floats or doubles

· add(), subtract(), multiply(), and divide().  Each of these should take oneComplexNumber parameter and return a new ComplexNumber object without changing the original ComplexNumber objects.  For example:

ComplexNumber c1 = new ComplexNumber(3.1, 5.0); ComplexNumber c2 = new ComplexNumber(-1.0, 2.8); ComplexNumber c3 = c1.add(c2); // c1 is still (3.1, 5.0) because it hasn't changed // c2 is still (-1.0, 2.8) because it hasn't changed // c3 is (-2.1, 7.8)

· an abs() method which returns the absolute value of the complex number as a float or a double

· a toString method that returns complex numbers such as (.7, 1.3) in the form “.7 + 1.3i”

· Points that don’t escape should all be the same color

· Points that escape should be based on the number of iterations required for it to escape, somehow scaling the color (see lerpColor() as one way to scale colors)

· You could show the orbit of a seed (my code showed a hollow circle for each number in the orbit, with the circles getting smaller with each iteration)

· You could allow zooming (if you do, it would be useful to be able to reset the zoom)

· You could think of something else.

Zip everything together and submit it to Canvas.  See next page for some advice…


留学ICU™️ 留学生辅助指导品牌
在线客服 7*24 全天为您提供咨询服务
咨询电话(全球): +86 17530857517
客服QQ:2405269519
微信咨询:zz-x2580
关于我们
微信订阅号
© 2012-2021 ABC网站 站点地图:Google Sitemap | 服务条款 | 隐私政策
提示:ABC网站所开展服务及提供的文稿基于客户所提供资料,客户可用于研究目的等方面,本机构不鼓励、不提倡任何学术欺诈行为。