daily uodate on 20240411 by nitload youmu, camera complete
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user