OK In progress...

This commit is contained in:
Kolan Sh 2018-01-22 13:26:58 +03:00
parent 97721385fc
commit 644c7b4409
1 changed files with 12 additions and 0 deletions

View File

@ -79,6 +79,18 @@ namespace CairoChart {
this.y1 = y1; this.y1 = y1;
} }
/**
* Constructs a new ``Area`` by 2 points.
* @param p0 top left position.
* @param p1 bottom right position.
*/
public Area.with_points (Point p0, Point p1) {
this.x0 = p0.x;
this.y0 = p0.y;
this.x1 = p1.x;
this.y1 = p1.y;
}
/** /**
* Constructs a new ``Area`` with relative coordinates. * Constructs a new ``Area`` with relative coordinates.
* @param x0 left bound. * @param x0 left bound.