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

Method getWidth

core/src/processing/opengl/PShapeOpenGL.java:608–620  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

606
607
608 @Override
609 public float getWidth() {
610 PVector min = new PVector(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY,
611 Float.POSITIVE_INFINITY);
612 PVector max = new PVector(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY,
613 Float.NEGATIVE_INFINITY);
614 if (shapeCreated) {
615 getVertexMin(min);
616 getVertexMax(max);
617 }
618 width = max.x - min.x;
619 return width;
620 }
621
622
623 @Override

Callers 6

shapeMethod · 0.45
initOffscreenMethod · 0.45
initWindowMethod · 0.45
placeWindowMethod · 0.45
placePresentMethod · 0.45
setCursorMethod · 0.45

Calls 2

getVertexMinMethod · 0.95
getVertexMaxMethod · 0.95

Tested by

no test coverage detected