Vector.angle -> Vector.angleBetween.

This commit is contained in:
Michael Bayne
2011-09-02 15:23:13 -07:00
parent 0644fc6f59
commit 49eafa5653
2 changed files with 2 additions and 2 deletions
@@ -38,7 +38,7 @@ public abstract class AbstractVector implements IVector
}
@Override // from interface IVector
public float angle (IVector other) {
public float angleBetween (IVector other) {
float cos = dot(other) / (length() * other.length());
return cos >= 1f ? 0f : FloatMath.acos(cos);
}
+1 -1
View File
@@ -35,7 +35,7 @@ public interface IVector
Vector normalize (Vector result);
/** Returns the angle between this vector and the specified other vector. */
float angle (IVector other);
float angleBetween (IVector other);
/** Returns the direction of a vector pointing from this point to the specified other point. */
float direction (IVector other);