MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / updateBounds

Method updateBounds

src/org/jibble/epsgraphics/EpsDocument.java:71–84  ·  view source on GitHub ↗

Updates the bounds of the current EPS document.

(double x, double y)

Source from the content-addressed store, hash-verified

69 * Updates the bounds of the current EPS document.
70 */
71 public synchronized void updateBounds(double x, double y) {
72 if(x>maxX) {
73 maxX = (float) x;
74 }
75 if(x<minX) {
76 minX = (float) x;
77 }
78 if(y>maxY) {
79 maxY = (float) y;
80 }
81 if(y<minY) {
82 minY = (float) y;
83 }
84 }
85
86 /**
87 * Appends a line to the EpsDocument. A new line character is added

Callers 1

drawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected