()
| 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 |
no test coverage detected