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