Replaced assertion with proper exception in Vector.java
This commit is contained in:
parent
309ef6b06e
commit
68e4faf560
|
@ -87,10 +87,8 @@ public abstract class Vector implements Serializable, ReadableVector {
|
||||||
if (len != 0.0f) {
|
if (len != 0.0f) {
|
||||||
float l = 1.0f / len;
|
float l = 1.0f / len;
|
||||||
return scale(l);
|
return scale(l);
|
||||||
} else {
|
} else
|
||||||
assert false;
|
throw new IllegalStateException("Zero length vector");
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue