C# Class teapot2.Form1

Show file Open project: gousiosg/teapots

Public Methods

Method Description
Form1 ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
Distance ( PointF a, PointF b ) : double
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Main ( ) : void
RandomColor ( ) : Color
TooSmall ( PointF points ) : bool
hasHorizontal ( PointF ps ) : bool

Check if triangle has an horizontal line

hasVertical ( PointF ps ) : bool

Check if triangle has a vertical line

newTriangles ( PointF triangle, int stack ) : IEnumerable
readTriangles ( ) : IEnumerable
splitHorizontal ( PointF points ) : IEnumerable

Split the triangle in East - West orientation

splitVertical ( PointF points ) : IEnumerable

Split the triangle in two parts, North and South

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Form1() public method

public Form1 ( ) : System
return System