MCPcopy Index your code
hub / github.com/benfry/processing4 / getWidth

Method getWidth

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

Source from the content-addressed store, hash-verified

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

Callers 8

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

Calls 2

getVertexMinMethod · 0.95
getVertexMaxMethod · 0.95

Tested by

no test coverage detected