Tabnine Logo
PApplet.max
Code IndexAdd Tabnine to your IDE (free)

How to use
max
method
in
processing.core.PApplet

Best Java code snippets using processing.core.PApplet.max (Showing top 20 results out of 315)

origin: org.processing/core

void setFirstTexIndex(int firstIndex, int firstCache) {
 if (texCache != null) {
  firstTexIndex = firstIndex;
  firstTexCache = PApplet.max(0, firstCache);
 }
}
origin: ajavamind/Processing-Cardboard

void getLineVertexMax(PVector v, int first, int last) {
 for (int i = first; i <= last; i++) {
  int index = 4 * i;
  v.x = PApplet.max(v.x, lineVertices[index++]);
  v.y = PApplet.max(v.y, lineVertices[index++]);
  v.z = PApplet.max(v.z, lineVertices[index  ]);
 }
}
origin: ajavamind/Processing-Cardboard

void setFirstTexIndex(int firstIndex, int firstCache) {
 if (texCache != null) {
  firstTexIndex = firstIndex;
  firstTexCache = PApplet.max(0, firstCache);
 }
}
origin: org.processing/core

void getPointVertexMax(PVector v, int first, int last) {
 for (int i = first; i <= last; i++) {
  int index = 4 * i;
  v.x = PApplet.max(v.x, pointVertices[index++]);
  v.y = PApplet.max(v.y, pointVertices[index++]);
  v.z = PApplet.max(v.z, pointVertices[index  ]);
 }
}
origin: org.processing/core

void getVertexMax(PVector v) {
 int index;
 for (int i = 0; i < vertexCount; i++) {
  index = 4 * i;
  v.x = PApplet.max(v.x, vertices[index++]);
  v.y = PApplet.max(v.y, vertices[index++]);
  v.z = PApplet.max(v.z, vertices[index  ]);
 }
}
origin: org.processing/core

void getPolyVertexMax(PVector v, int first, int last) {
 for (int i = first; i <= last; i++) {
  int index = 4 * i;
  v.x = PApplet.max(v.x, polyVertices[index++]);
  v.y = PApplet.max(v.y, polyVertices[index++]);
  v.z = PApplet.max(v.z, polyVertices[index  ]);
 }
}
origin: ajavamind/Processing-Cardboard

void getPolyVertexMax(PVector v, int first, int last) {
 for (int i = first; i <= last; i++) {
  int index = 4 * i;
  v.x = PApplet.max(v.x, polyVertices[index++]);
  v.y = PApplet.max(v.y, polyVertices[index++]);
  v.z = PApplet.max(v.z, polyVertices[index  ]);
 }
}
origin: ajavamind/Processing-Cardboard

void getVertexMax(PVector v) {
 int index;
 for (int i = 0; i < vertexCount; i++) {
  index = 4 * i;
  v.x = PApplet.max(v.x, vertices[index++]);
  v.y = PApplet.max(v.y, vertices[index++]);
  v.z = PApplet.max(v.z, vertices[index  ]);
 }
}
origin: ajavamind/Processing-Cardboard

void getPointVertexMax(PVector v, int first, int last) {
 for (int i = first; i <= last; i++) {
  int index = 4 * i;
  v.x = PApplet.max(v.x, pointVertices[index++]);
  v.y = PApplet.max(v.y, pointVertices[index++]);
  v.z = PApplet.max(v.z, pointVertices[index  ]);
 }
}
origin: org.processing/core

void getLineVertexMax(PVector v, int first, int last) {
 for (int i = first; i <= last; i++) {
  int index = 4 * i;
  v.x = PApplet.max(v.x, lineVertices[index++]);
  v.y = PApplet.max(v.y, lineVertices[index++]);
  v.z = PApplet.max(v.z, lineVertices[index  ]);
 }
}
origin: ajavamind/Processing-Cardboard

protected static IntBuffer allocateDirectIntBuffer(int size) {
 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_INT;
 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder()).
     asIntBuffer();
}
origin: org.processing/core

protected static FloatBuffer allocateDirectFloatBuffer(int size) {
 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_FLOAT;
 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder()).
     asFloatBuffer();
}
origin: org.processing/core

protected static IntBuffer allocateDirectIntBuffer(int size) {
 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_INT;
 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder()).
     asIntBuffer();
}
origin: ajavamind/Processing-Cardboard

protected static FloatBuffer allocateDirectFloatBuffer(int size) {
 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_FLOAT;
 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder()).
     asFloatBuffer();
}
origin: poqudrof/PapARt

protected static IntBuffer allocateDirectIntBuffer(int size) {
  int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_INT;
  return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder()).
      asIntBuffer();
}
origin: ajavamind/Processing-Cardboard

protected static ByteBuffer allocateDirectByteBuffer(int size) {
 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_BYTE;
 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder());
}
origin: org.processing/core

protected static ByteBuffer allocateDirectByteBuffer(int size) {
 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_BYTE;
 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder());
}
origin: org.processing/core

protected static ShortBuffer allocateDirectShortBuffer(int size) {
 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_SHORT;
 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder()).
     asShortBuffer();
}
origin: ajavamind/Processing-Cardboard

protected static ShortBuffer allocateDirectShortBuffer(int size) {
 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_SHORT;
 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder()).
     asShortBuffer();
}
origin: org.processing/core

public void print() {
 int big = (int) abs(max(PApplet.max(abs(m00), abs(m01), abs(m02)),
             PApplet.max(abs(m10), abs(m11), abs(m12))));
 int digits = 1;
 if (Float.isNaN(big) || Float.isInfinite(big)) {  // avoid infinite loop
  digits = 5;
 } else {
  while ((big /= 10) != 0) digits++;  // cheap log()
 }
 System.out.println(PApplet.nfs(m00, digits, 4) + " " +
           PApplet.nfs(m01, digits, 4) + " " +
           PApplet.nfs(m02, digits, 4));
 System.out.println(PApplet.nfs(m10, digits, 4) + " " +
           PApplet.nfs(m11, digits, 4) + " " +
           PApplet.nfs(m12, digits, 4));
 System.out.println();
}
processing.corePAppletmax

Javadoc

( begin auto-generated from max.xml ) Determines the largest value in a sequence of numbers. ( end auto-generated )

Popular methods of PApplet

  • constrain
  • createGraphics
    Create an offscreen graphics surface for drawing, in this case for a renderer that writes to a file
  • loadStrings
    ( begin auto-generated from loadStrings.xml ) Reads the contents of a file or url and creates a Stri
  • saveStrings
    ( begin auto-generated from saveStrings.xml ) Writes an array of strings to a file, one line per str
  • abs
  • createImage
    ( begin auto-generated from createImage.xml ) Creates a new PImage (the datatype for storing images)
  • createShape
  • createWriter
    ( begin auto-generated from createWriter.xml ) Creates a new file in the sketch folder, and a PrintW
  • loadImage
  • main
    main() method for running this class from the command line. Usage: PApplet [options] [s
  • parseInt
  • random
    ( begin auto-generated from random.xml ) Generates random numbers. Each time the random() function
  • parseInt,
  • random,
  • round,
  • split,
  • sqrt,
  • unhex,
  • arrayCopy,
  • ceil,
  • checkExtension

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • Menu (java.awt)
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now