Package processing.core

Examples of processing.core.PVector


    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]);
  }
View Full Code Here


    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]);
  }
View Full Code Here

    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]);
  }
View Full Code Here

 
  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]);
  }
View Full Code Here

   * 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);
  }
View Full Code Here

   * @see anchorX()
   * @see anchorY()
   * @return A new PVector containing the anchor of this drawable, in pixels.
   */
  public PVector anchor() {
    return new PVector( anchorX(), anchorY() );
  }
View Full Code Here

   * @see anchorU()
   * @see anchorV()
   * @return A new PVector containing this drawable's anchor as percentage
   */
  public PVector anchorUV() {
    return new PVector(_anchorU, _anchorV);
  }
View Full Code Here

   * @see width()
   * @see height()
   * @return A new PVector containing the width and height of this drawable.
   */
  public PVector size() {
    return new PVector(_width,_height);
  }
View Full Code Here

     
      if(y < minY) minY = y;
      else if(y > maxY) maxY = y;
    }
   
    return new PVector(maxX-minX, maxY-minY);
  }
View Full Code Here

    return this;
  }
 
  @Override
  public PVector size() {
    return new PVector(_width,_height,_depth);
  }
View Full Code Here

TOP

Related Classes of processing.core.PVector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.