Daily update on 20231211 by nitload youmu

This commit is contained in:
Nitload
2023-12-12 03:17:16 +08:00
parent ab85c1a9fe
commit f97fb137ba
100 changed files with 2699 additions and 3191 deletions
@@ -4,7 +4,7 @@
{
public static float GetAngle(Vec2d vec1, Vec2d vec2)
{
return Calc.ACos(1
return Scaler.ACos(1
//vec1.multiple(vec2)
/ (vec1.GetLength() * vec2.GetLength())
);
@@ -12,7 +12,7 @@
public static float GetAngle(vec3d vec1, vec3d vec2)
{
return Calc.ACos(
return Scaler.ACos(
vec1 * vec2
/ (vec1.GetLength() * vec2.GetLength())
);
@@ -4,7 +4,7 @@
{
public static float GetLength(this vec3d vec)
{
return Calc.Sqrt(
return Scaler.Sqrt(
vec.X * vec.X +
vec.Y * vec.Y +
vec.Z * vec.Z
@@ -13,7 +13,7 @@
public static float GetLength(this Vec2d vec)
{
return Calc.Sqrt(
return Scaler.Sqrt(
vec.X * vec.X +
vec.Y * vec.Y
);