daily uodate on 20240411 by nitload youmu, camera complete

This commit is contained in:
YoumuLiu
2024-04-11 02:15:22 +08:00
parent e1e416bb41
commit f0f80f72f1
144 changed files with 111879 additions and 1249 deletions
@@ -35,19 +35,12 @@ namespace StgSharp.Math
public static float GetLength(this vec3d vec)
{
return Scaler.Sqrt(
(vec.X * vec.X) +
(vec.Y * vec.Y) +
(vec.Z * vec.Z)
);
return Scaler.Sqrt(vec.Dot(vec));
}
public static float GetLength(this Vec2d vec)
public static float GetLength(this vec2d vec)
{
return Scaler.Sqrt(
(vec.X * vec.X) +
(vec.Y * vec.Y)
);
return Scaler.Sqrt(vec.Dot(vec));
}
}