Replace Matrix3 with System.Numerics.Matrix3x2 (#27443)
Replace Matrix3 with Matrix3x2
This commit is contained in:
@@ -223,7 +223,7 @@ namespace Content.Client.NPC
|
||||
|
||||
foreach (var crumb in chunk.Value)
|
||||
{
|
||||
var crumbMapPos = worldMatrix.Transform(_system.GetCoordinate(chunk.Key, crumb.Coordinates));
|
||||
var crumbMapPos = Vector2.Transform(_system.GetCoordinate(chunk.Key, crumb.Coordinates), worldMatrix);
|
||||
var distance = (crumbMapPos - mouseWorldPos.Position).Length();
|
||||
|
||||
if (distance < nearestDistance)
|
||||
@@ -292,7 +292,7 @@ namespace Content.Client.NPC
|
||||
|
||||
foreach (var poly in tile)
|
||||
{
|
||||
if (poly.Box.Contains(invGridMatrix.Transform(mouseWorldPos.Position)))
|
||||
if (poly.Box.Contains(Vector2.Transform(mouseWorldPos.Position, invGridMatrix)))
|
||||
{
|
||||
nearest = poly;
|
||||
break;
|
||||
@@ -488,7 +488,7 @@ namespace Content.Client.NPC
|
||||
if (neighborMap.MapId != args.MapId)
|
||||
continue;
|
||||
|
||||
neighborPos = invMatrix.Transform(neighborMap.Position);
|
||||
neighborPos = Vector2.Transform(neighborMap.Position, invMatrix);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -576,7 +576,7 @@ namespace Content.Client.NPC
|
||||
}
|
||||
}
|
||||
|
||||
worldHandle.SetTransform(Matrix3.Identity);
|
||||
worldHandle.SetTransform(Matrix3x2.Identity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user