swiss ok, needs more benchmark

This commit is contained in:
Youmu Liu
2026-03-06 18:22:30 +08:00
parent 83997f64d0
commit f6e897ed06
70 changed files with 1889 additions and 3371 deletions
@@ -32,14 +32,18 @@ namespace StgSharp.Mathematics.Graphics
public static unsafe partial class Linear
{
public static float GetLength(this Vec3 vec)
public static float GetLength(
this Vec3 vec
)
{
return Scalar.Sqrt(vec.Dot(vec));
return MathF.Sqrt(vec.Dot(vec));
}
public static float GetLength(this Vec2 vec)
public static float GetLength(
this Vec2 vec
)
{
return Scalar.Sqrt(vec.Dot(vec));
return MathF.Sqrt(vec.Dot(vec));
}
}