100101102103104105106
super.onResize(oldW, oldH, newW, newH); } @Override public PVector anchor() { return new PVector(anchorX(), anchorY(), anchorZ()); }
105106107108109110111
return new PVector(anchorX(), anchorY(), anchorZ()); } @Override public PVector anchorUV() { return new PVector(_anchorU, _anchorV, _anchorW); }
110111112113114115116
// SIZE // @Override public PVector size() { return new PVector(_app.width,_app.height); }
4546474849505152
return _target; } @Override public void applyTo(HDrawable target) { PVector pt = getNextPoint(); if(pt != null) target.loc(pt); }
676869707172737475
for(int i=0; i<_iterationLimit; ++i) { float x = H.app().random(x1,x2); float y = H.app().random(y1,y2); if(_target.contains(x,y)) return new PVector(x,y); } return null; }
50515253545556
public int cols() { return _numCols; } public PVector startLoc() { return new PVector(_startX, _startY); }
78798081828384
_startY = y; return this; } public PVector spacing() { return new PVector(_xSpace, _ySpace); }
@Override public PVector getNextPoint() { int row = (int) Math.floor(_currentIndex / _numCols); int col = _currentIndex % _numCols; ++_currentIndex; return new PVector(col*_xSpace + _startX, row*_ySpace + _startY); }
7576777879808182
this.controlPoint1 = controlPoint1; this.hasControlPoint1 = true; } public void setControlPoint1(float x, float y) { this.controlPoint1 = new PVector(x,y); this.hasControlPoint1 = true; }
8586878889909192
this.controlPoint2 = controlPoint2; this.hasControlPoint2 = true; } public void setControlPoint2(float x, float y) { this.controlPoint2 = new PVector(x,y); this.hasControlPoint2 = true; }