Join -> JointLink
This commit is contained in:
@@ -228,7 +228,7 @@ namespace _2DGAMELIB
|
|||||||
if (difs.EnumJoinRoot.All(delegate(ShapePart p0)
|
if (difs.EnumJoinRoot.All(delegate(ShapePart p0)
|
||||||
{
|
{
|
||||||
p = p0.Position;
|
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;
|
return difs;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace _2DGAMELIB
|
namespace _2DGAMELIB
|
||||||
{
|
{
|
||||||
public static class Join
|
public static class JointLink
|
||||||
{
|
{
|
||||||
public static double IdentityDistance = System.Math.Pow(5E-05, 2.0);
|
public static double IdentityDistance = System.Math.Pow(5E-05, 2.0);
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ namespace _2DGAMELIB
|
|||||||
foreach (ShapePart p0 in array2)
|
foreach (ShapePart p0 in array2)
|
||||||
{
|
{
|
||||||
Vector2D p = p0.Position;
|
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;
|
return p0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user