The function levenshtein distance (dots) {//not to deal with?
Var lastX=400, lastY=300, firstMouse=true, yaw=0, pitch=0;
Var PTS=[];
For (var I=0; i
If (firstMouse) {
LastX=pt. X;
LastY=pt. Y;
FirstMouse=false;
}
Var xoffset=pt. X-ray lastX;
Var yoffset=lastY - pt. Y;
LastX=pt. X;
LastY=pt. Y;
Var sensitivity=0.05;
Xoffset *=sensitivity;
Yoffset *=sensitivity;
Yaw +=xoffset;
Pitch +=yoffset;
If (pitch & gt; 89.0)
Pitch=89.0;
If (pitch & lt; 89.0)
Pitch=89.0;
Var pt={x x: pt. * (1 + Math. Cos (yaw) * Math. Cos (pitch), y: pt. Y * (1 + Math. Sin (pitch), z: pt. Z * (1 + Math. Sin (yaw) * Math. Cos (pitch)};
PTS. Push (pt);
}
Return the PTS;
}
CodePudding user response:
There is no answer? If I understand it wrong?Known to have a series of div pixels, I want to look from a different path is the path to the point, how should do?