mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 08:25:19 +01:00
fix condition for being a unit vector
This commit is contained in:
parent
dea23c2d57
commit
e439e43aaf
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ export default class Vector implements XYZ {
|
|||
}
|
||||
|
||||
asUnitVector(): UnitVector {
|
||||
if (areEqual(this.lengthSquared(), 1, TOLERANCE_SQ)) {
|
||||
if (!areEqual(this.lengthSquared(), 1, TOLERANCE_SQ)) {
|
||||
console.error("not unit vector is treated as unit");
|
||||
}
|
||||
return this as any as UnitVector;
|
||||
|
|
|
|||
Loading…
Reference in a new issue