Math/Plane: Fix construction from 3 points

This commit is contained in:
SirLynix
2023-06-23 13:23:26 +02:00
parent b2538028b4
commit 2f1e2f94d7
3 changed files with 5 additions and 3 deletions

View File

@@ -460,7 +460,7 @@ namespace Nz
T farW = farH * ratio;
Vector3<T> f = Vector3<T>::Normalize(target - eye);
Vector3<T> u(up.GetNormal());
Vector3<T> u = Vector3<T>::Normalize(up);
Vector3<T> s = Vector3<T>::Normalize(f.CrossProduct(u));
u = s.CrossProduct(f);