update example to match
This commit is contained in:
parent
c128b97ad5
commit
b4512f2434
18
test/plex.ul
18
test/plex.ul
|
|
@ -8,9 +8,8 @@ plex Point {
|
||||||
}
|
}
|
||||||
|
|
||||||
toS() {
|
toS() {
|
||||||
pln("[x:%d, y:%d]",
|
return "[x:" + (this.x as str) +
|
||||||
this.x,
|
", y:" + (this.y as str) + "]";
|
||||||
this.y);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -28,13 +27,12 @@ plex Rect {
|
||||||
}
|
}
|
||||||
|
|
||||||
toS() {
|
toS() {
|
||||||
pln("[top_left: [x:%d, y:%d], bottom_right: [x:%d, y:%d], width:%d, height:%d]]",
|
return "[top_left:" +
|
||||||
this.top_left.x,
|
this.top_left.toS() +
|
||||||
this.top_left.y,
|
", bottom_right: " +
|
||||||
this.bottom_right.x,
|
this.bottom_right.toS() +
|
||||||
this.bottom_right.y,
|
", width:" + (this.width as str) +
|
||||||
this.width,
|
", height:" + (this.height as str) + "]";
|
||||||
this.height);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue