Join -> JointLink

This commit is contained in:
2026-06-14 00:50:14 +02:00
parent 24a72f468d
commit 0c62525f54
3 changed files with 3 additions and 3 deletions

View File

@@ -228,7 +228,7 @@ namespace _2DGAMELIB
if (difs.EnumJoinRoot.All(delegate(ShapePart p0)
{
p = p0.Position;
return pa.All((ShapePart p1) => p0 == p1 || p1.JP.All((JointPoint j) => !(p1.ToGlobal(j.Joint).DistanceSquared(p) <= Join.IdentityDistance)));
return pa.All((ShapePart p1) => p0 == p1 || p1.JP.All((JointPoint j) => !(p1.ToGlobal(j.Joint).DistanceSquared(p) <= JointLink.IdentityDistance)));
}))
{
return difs;

View File

@@ -4,7 +4,7 @@ using System.Linq;
namespace _2DGAMELIB
{
public static class Join
public static class JointLink
{
public static double IdentityDistance = System.Math.Pow(5E-05, 2.0);

View File

@@ -305,7 +305,7 @@ namespace _2DGAMELIB
foreach (ShapePart p0 in array2)
{
Vector2D p = p0.Position;
if (array.All((ShapePart p1) => p0 == p1 || p1.JP.All((JointPoint j) => !(p1.ToGlobal(j.Joint).DistanceSquared(p) <= Join.IdentityDistance))))
if (array.All((ShapePart p1) => p0 == p1 || p1.JP.All((JointPoint j) => !(p1.ToGlobal(j.Joint).DistanceSquared(p) <= JointLink.IdentityDistance))))
{
return p0;
}