pageok

LumarcaLibrary class: getMaxPosition(PVector p)

Example:

   void setup(){
   
   	Lumarca lumarca = new LumarcaLibrary(this, 256, false);  //create LumarcaLibrary
	
		PVector maxPos = new PVector();
		lumarca.getMaxPosition(maxPos);

   	println(maxPos);        //print out the x,y,z value of the edge of the volume
	}

Description

    Sets the paased PVector to the maximum coordinates of the volume.
    This is useful for placing shapes at the edge of the volume or bounding motion inside of the volume.

    Note: this function does not return anything. It accepts a PVector and sets it value. This is useful to reduce the number of objects produced and a standard approach when dealing with graphics programming.

Parameteres

    PVector
      This PVector is set to have the x,y,z coordinates of the maximum of the volume.

Related

    getLines()
    getMaxX()
    getMaxY()
    getMaxZ()
    getMidX()
    getMidY()
    getMidZ()
    getMinX()
    getMinY()
    getMinZ()
    getCenterPosition(PVector p)
    getMinPosition(PVector p)
    getMaxPosition(PVector p)

pageok