50 |
float xcenter = marginfraction * size[0]; |
float xcenter = marginfraction * size[0]; |
51 |
if(direction > 0) xcenter = size[0] - xcenter; |
if(direction > 0) xcenter = size[0] - xcenter; |
52 |
|
|
53 |
|
// Change scale -- we always fit exactly to the given fraction |
54 |
|
float desiredw = size[0] * marginfraction * 2; |
55 |
|
if(scale * w > desiredw) |
56 |
|
scale = desiredw / w; |
57 |
|
|
58 |
// Create coordinate system |
// Create coordinate system |
59 |
int buoyCS = vs.orthoBoxCS( |
int buoyCS = vs.orthoBoxCS( |
60 |
this.into, key, -50, |
this.into, key, -50, |