MCPcopy Index your code
hub / github.com/processing/processing / vertex

Method vertex

core/src/processing/core/PShape.java:687–708  ·  view source on GitHub ↗
(float x, float y)

Source from the content-addressed store, hash-verified

685
686
687 public void vertex(float x, float y) {
688 if (vertices == null) {
689 vertices = new float[10][2];
690 } else if (vertices.length == vertexCount) {
691 vertices = (float[][]) PApplet.expand(vertices);
692 }
693 vertices[vertexCount++] = new float[] { x, y };
694
695 if (vertexCodes == null) {
696 vertexCodes = new int[10];
697 } else if (vertexCodes.length == vertexCodeCount) {
698 vertexCodes = PApplet.expand(vertexCodes);
699 }
700 vertexCodes[vertexCodeCount++] = VERTEX;
701
702 if (x > width) {
703 width = x;
704 }
705 if (y > height) {
706 height = y;
707 }
708 }
709
710
711 public void vertex(float x, float y, float u, float v) {

Callers 2

getTessellationMethod · 0.95
getShapeMethod · 0.95

Calls 1

expandMethod · 0.95

Tested by

no test coverage detected