[2D windows]

`#include <octagon2d.hh>`

Inherits classical_window_base< dpoint2d, octagon2d >.

## Public Member Functions | |

unsigned | area () const |

Give the area. | |

unsigned | length () const |

Give the octagon length, that is, its width. | |

octagon2d (unsigned length) | |

Constructor. |

An octagon2d is centered and symmetric.

The length L of the octagon is such as L = 6 * l + 1 where l >= 0.

For instance:

* o o o * o o o o o * o o o o o o o * o o o x o o o * o o o o o o o * o o o o o * o o o *

mln::win::octagon2d::octagon2d | ( | unsigned | length |
) | ` [inline]` |

Constructor.

**Parameters:**-
`[in]`*length*Length, of the octagon.

**Precondition:**`length`

is such as length = 6*x + 1 where x >= 0.

unsigned mln::win::octagon2d::area | ( | ) | const` [inline]` |

Give the area.

unsigned mln::win::octagon2d::length | ( | ) | const` [inline]` |

Give the octagon length, that is, its width.

Generated on Tue Jul 14 16:33:22 2009 for Milena (Olena) by 1.5.9