|
Method looking for name |
Polybios
Member #12,293
October 2010
|
Hi guys, how would you call this simple method? I can't come up with something useful right now. Rectangle Rectangle::lookingForName(int s) const { return Rectangle(x() - s, y() - s, w() + 2*s, h() + 2*s); } Any suggestions much appreciated. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Rectangle Rectangle::CenteredExpansion(int expansion) { return Rectangle(x() - expansion , y() - expansion , w() + 2*expansion , h() + 2*epxansion); }
My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Elias
Member #358
May 2000
|
Rectangle::scale -- |
SiegeLord
Member #7,827
October 2006
|
Dilate, AddSquare (addition in the sense of https://en.wikipedia.org/wiki/Minkowski_addition). "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
Edgar Reynaldo
Major Reynaldo
May 2007
|
I use Shrink and Grow separately. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Bruce Perry
Member #270
April 2000
|
Dilate is definitely the term I know from image editing software. AddBorders is another possibility. -- |
|