ncc比例参数调整
This commit is contained in:
parent
7ff9a044b8
commit
623f8968b7
@ -58,7 +58,7 @@ export default class NccTrain extends Group {
|
||||
totalLength += length;
|
||||
stateI += step;
|
||||
}
|
||||
const complateLength = totalLength * model.stationComplateRatio;
|
||||
const complateLength = totalLength * model.stationCompleteRatio;
|
||||
let nowIndex = 0;
|
||||
let nowLength = complateLength;
|
||||
while (nowLength > lengthList[nowIndex]) {
|
||||
@ -75,8 +75,8 @@ export default class NccTrain extends Group {
|
||||
} else if (pointIndexs.length) {
|
||||
const startP = runLinePoints[pointIndexs[0]];
|
||||
const endP = runLinePoints[pointIndexs[1]];
|
||||
px = startP.x + Math.round(model.stationComplateRatio * (endP.x - startP.x));
|
||||
py = startP.y + Math.round(model.stationComplateRatio * (endP.y - startP.y));
|
||||
px = startP.x + Math.round(model.stationCompleteRatio * (endP.x - startP.x));
|
||||
py = startP.y + Math.round(model.stationCompleteRatio * (endP.y - startP.y));
|
||||
angle = Math.atan2( startP.y - endP.y, startP.x - endP.x);
|
||||
angle = -angle;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user