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

Method getHeight

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

Source from the content-addressed store, hash-verified

621
622
623 @Override
624 public float getHeight() {
625 PVector min = new PVector(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY,
626 Float.POSITIVE_INFINITY);
627 PVector max = new PVector(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY,
628 Float.NEGATIVE_INFINITY);
629 if (shapeCreated) {
630 getVertexMin(min);
631 getVertexMax(max);
632 }
633 height = max.y - min.y;
634 return height;
635 }
636
637
638 @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