#include <cstdlib>
#include <iostream>
#include <fstream>
#include <cmath>
int main( int, char *[] )
{
std::vector<Point> points;
for ( double x = -1.0; x < 1.0; x += 0.01 ) {
points.push_back(
Point( 100*x, 100.0*sin(2*M_PI*x) ) );
}
for ( double x = -100.0; x <= 100.0; x += 10.0 ) {
}
board.
drawText( 0.0, 100.0,
"Hello world!" );
Point p = board.
last<
Text>().boundingBox(Shape::IgnoreLineWidth).bottomLeft();
board << board.
last<
Text>().rotated( 45 * Board::Degree, p );
board << board.
last<
Text>().rotated( 45 * Board::Degree, p );
board << board.
last<
Text>().rotated( 45 * Board::Degree, p );
board << board.
last<
Text>().rotated( 45 * Board::Degree, p );
board.
saveEPS(
"example2_A4.eps", Board::A4 );
board.
saveFIG(
"example2_A4.fig", Board::A4 );
board.
saveSVG(
"example2_A4.svg", Board::A4 );
}