Ballistic flight r3: name CultMath.float2x2.Rotate in full (the math.float2x2 method shadows the type)

The previous commit (2dcb7b20) does not build: DrawAhead.cs CS0119.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-09 23:29:32 +02:00
commit 6b36835953
2 changed files with 2 additions and 3 deletions

View file

@ -63,7 +63,7 @@ public static class DrawAhead
{
var at = Position(target, lead);
var offset = target.ToWorldPoint((float2) cell) - target.Position.xz;
var turned = mul(offset, float2x2.Rotate(Turn(target, lead)));
var turned = mul(offset, CultMath.float2x2.Rotate(Turn(target, lead)));
return float3(at.x + turned.x, at.y, at.z + turned.y);
}

View file

@ -9,7 +9,6 @@ using UniRx;
using Xunit;
using static CultMath.math;
using float2 = CultMath.float2;
using float2x2 = CultMath.float2x2;
using float3 = CultMath.float3;
using int2 = CultMath.int2;
@ -429,7 +428,7 @@ public sealed partial class FireControlCut124Tests
var position = e.Target.Position;
var direction = e.Target.Direction;
e.Target.Position += float3(e.Target.Velocity.x, 0, e.Target.Velocity.y) * lead;
e.Target.Direction = mul(e.Target.Direction, float2x2.Rotate(e.Target.TurnRate * lead));
e.Target.Direction = mul(e.Target.Direction, CultMath.float2x2.Rotate(e.Target.TurnRate * lead));
var cellPoint = e.Target.ToWorldPoint((float2) cell);
var expected = float3(cellPoint.x, e.Target.Position.y, cellPoint.y);
e.Target.Position = position;