GoldenSpiral Class Reference
[Example scripts (models)]
Example: Golden spiral More...
Public Member Functions
|GoldenSpiral (const Options &opt)|
|Actual model. |
|GoldenSpiral (GoldenSpiral &p)|
|Constructor for cloning p. |
|virtual Space *||copy (void)|
|Copy during cloning. |
|virtual FloatVar||cost (void) const|
|Cost function. |
|virtual void||print (std::ostream &os) const|
|Print solution coordinates. |
|The numbers. |
Example: Golden spiral
The Golden Spiral is a logarithmic spiral whose growth factor is the golden ratio .
It is defined by the polar equation:
To get cartesian coordinates, it can be solved for and in terms of and . By setting , it yields to the equation:
The tuple is related to the position for and on the curve. and are positive numbers.
To get reasonable interval starting sizes, and are restricted to .
Constructor & Destructor Documentation
|GoldenSpiral::GoldenSpiral||(||const Options &||opt||)||
Member Function Documentation
|virtual Space* GoldenSpiral::copy||(||void||)||
|virtual FloatVar GoldenSpiral::cost||(||void||)|| const
|virtual void GoldenSpiral::print||(||std::ostream &||os||)|| const
Member Data Documentation
The documentation for this class was generated from the following file: