[Cg1] Re: [Assignment 1] Implementation of Julia Set

Pascal Grittmann s9pagrit at stud.uni-saarland.de
Sat Oct 29 18:19:07 CEST 2016


Hi,

The usual convention in C++ programming is: if something is declared  
in foo.h, it is usually defined in foo.cpp.
In this case: the definition of the julia() function can be found in  
core/julia.cpp

Best,
Pascal Grittmann

Zitat von 강효승 <fordicus at naver.com>:

> From Assignment Sheet,
>
> "Already provided functionality
> The bare-bone framework already provides for you:
>
> > Julia set generator (in core/julia.h). For the input complex  
> number v (represented as a Point
> object), the function recursively computes v0 = v2 + c and returns  
> the number of iterations for the
> v to reach near-infinty. The return value is clamped to 512."
>
>
> and I find from "julia.h",
>
> namespace rt {
>    class Point;
>    int julia(const Point& v, const Point& c);
> }
>
> [Q] Where is the implementation of Julia??? It is different from the  
> documentation.





More information about the Cg1 mailing list