57585960616263
return pt; } public static PVector rotatePoint(float x, float y, float rad) { float[] f = rotatePointArr(x,y,rad); return new PVector(f[0], f[1]); }
85868788899091
return f; } public static PVector absLoc(HDrawable ref, float relX, float relY) { float[] f = absLocArr(ref,relX,relY); return new PVector(f[0], f[1]); }
99100101102103104105
return rotatePointArr(absX-f[0], absY-f[1], -f[2]); } public static PVector relLoc(HDrawable ref, float absX, float absY) { float[] f = relLocArr(ref,absX,absY); return new PVector(f[0], f[1]); }
130131132133134135136
public static PVector ellipsePointRad( float cx, float cy, float a, float b, float rad ) { float[] f = ellipsePointRadArr(cx,cy, a,b, rad); return new PVector(f[0], f[1]); }
526527528529530531532
* Returns the position of this drawable as a PVector. * * @return A new PVector containing the coordinates of this drawable. */ public PVector loc() { return new PVector(_x,_y,_z); }
696697698699700701702
* @see anchorX() * @see anchorY() * @return A new PVector containing the anchor of this drawable, in pixels. */ public PVector anchor() { return new PVector( anchorX(), anchorY() ); }
787788789790791792793
* @see anchorU() * @see anchorV() * @return A new PVector containing this drawable's anchor as percentage */ public PVector anchorUV() { return new PVector(_anchorU, _anchorV); }
938939940941942943944
* @see width() * @see height() * @return A new PVector containing the width and height of this drawable. */ public PVector size() { return new PVector(_width,_height); }
1189119011911192119311941195
if(y < minY) minY = y; else if(y > maxY) maxY = y; } return new PVector(maxX-minX, maxY-minY); }
41424344454647
return this; } @Override public PVector size() { return new PVector(_width,_height,_depth); }