creates top and bottom vectors if null

This commit is contained in:
codeanticode
2012-05-25 16:32:07 +00:00
parent 2a8c034e38
commit 08944f3a00

View File

@@ -405,6 +405,9 @@ public class PShape implements PConstants {
public PVector getTop(PVector top) {
if (top == null) {
top = new PVector();
}
return top;
}
@@ -415,6 +418,9 @@ public class PShape implements PConstants {
public PVector getBottom(PVector bottom) {
if (bottom == null) {
bottom = new PVector();
}
return bottom;
}