Cleanup code
This commit is contained in:
parent
8b91342f55
commit
84100ba74c
@ -178,13 +178,14 @@ public class FinPointFigure extends AbstractScaleFigure {
|
|||||||
// vv in fin-frame == draw-frame vv
|
// vv in fin-frame == draw-frame vv
|
||||||
final double xOffset = -xFinStart;
|
final double xOffset = -xFinStart;
|
||||||
final double yOffset = -body.getRadius(xFinStart);
|
final double yOffset = -body.getRadius(xFinStart);
|
||||||
|
final float length_m = (float)( body.getLength());
|
||||||
|
|
||||||
Path2D.Double bodyShape = new Path2D.Double();
|
Path2D.Double bodyShape = new Path2D.Double();
|
||||||
// draw front-cap:
|
// draw front-cap:
|
||||||
bodyShape.moveTo( xOffset, yOffset);
|
bodyShape.moveTo( xOffset, yOffset);
|
||||||
bodyShape.lineTo( xOffset, yOffset + body.getForeRadius());
|
bodyShape.lineTo( xOffset, yOffset + body.getForeRadius());
|
||||||
|
|
||||||
final float length_m = (float)( body.getLength());
|
// draw edge
|
||||||
Point2D.Double cur = new Point2D.Double();
|
Point2D.Double cur = new Point2D.Double();
|
||||||
for( double xBody = xResolution_m ; xBody < length_m; xBody += xResolution_m ){
|
for( double xBody = xResolution_m ; xBody < length_m; xBody += xResolution_m ){
|
||||||
// xBody is distance from front of parent body
|
// xBody is distance from front of parent body
|
||||||
|
Loading…
x
Reference in New Issue
Block a user