Vector.angle -> Vector.angleBetween.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user