Knot3.Game.Input.EdgeMovement.ComputeLength C# (CSharp) Method

ComputeLength() private method

Berechne aus der angegebenen aktuellen Mausposition die hauptsächliche Richtung und die gerundete Länge in Rasterpunkt-Einheiten.
private ComputeLength ( Vector3 currentMousePosition ) : float
currentMousePosition Vector3
return float
        private float ComputeLength(Vector3 currentMousePosition)
        {
            Vector3 mouseMove = currentMousePosition - previousMousePosition;
            return mouseMove.Length () / Node.Scale;
        }