OK In progress...
This commit is contained in:
parent
97721385fc
commit
644c7b4409
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue