Functions | Variables

koch.cpp File Reference

Draw a random complete graph. More...

#include <cstdlib>
#include <ctime>
#include <iostream>
#include <fstream>
#include <cmath>
#include <vector>
#include <utility>
#include "Board/Board.h"
Include dependency graph for koch.cpp:


int coordinate (int width)
void Koch (ShapeList &board, const Color &color, Point p1, Point p2, int depth)
int main (int, char *[])


const int HALF_RAND = RAND_MAX/16
const double dy = 10

Detailed Description

Draw a random complete graph.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <>.

Sebastien Fourey <>
Tue Aug 21

This source code is part of the Board project, a C++ library whose purpose is to allow simple drawings in EPS, FIG or SVG files. Copyright (C) 2007 Sebastien Fourey <>

Function Documentation

int coordinate ( int  width  ) 
void Koch ( ShapeList board,
const Color color,
Point  p1,
Point  p2,
int  depth 
int main ( int  ,
char *  [] 

Variable Documentation

const double dy = 10
const int HALF_RAND = RAND_MAX/16