Remove redundant .nor() in nearestPoint()
This commit is contained in:
parent
81fc6e91c9
commit
a0b0753c5e
@ -14,7 +14,7 @@ public class Utils {
|
||||
float lineLen = lineDir.len();
|
||||
lineDir.nor();
|
||||
Vector2 ballDir = p1.sub(linep1);
|
||||
return linep1.add(lineDir.nor().scl(MathUtils.clamp(ballDir.dot(lineDir), 0, lineLen)));
|
||||
return linep1.add(lineDir.scl(MathUtils.clamp(ballDir.dot(lineDir), 0, lineLen)));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user