Исправление нормализации векторов
This commit is contained in:
parent
320e20997c
commit
7b40d23f19
2 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ namespace BasicGeometry
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
float multiplier = Math.Sqrt(1.0f / squareModule);
|
float multiplier = MathF.Sqrt(1.0f / squareModule);
|
||||||
|
|
||||||
this.x1 *= multiplier;
|
this.x1 *= multiplier;
|
||||||
this.x2 *= multiplier;
|
this.x2 *= multiplier;
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ namespace BasicGeometry
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
float multiplier = Math.Sqrt(1.0f / squareModule);
|
float multiplier = MathF.Sqrt(1.0f / squareModule);
|
||||||
|
|
||||||
this.x1 *= multiplier;
|
this.x1 *= multiplier;
|
||||||
this.x2 *= multiplier;
|
this.x2 *= multiplier;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue