port(m1): wave 6g — CS1061 member cluster (304->236)
- Friend.PlayerData full-surface generated (18 members) + hand stub -> partial. - Wizard.RoomMatch.Player: 7 friend-info props (ViewerId/Name/Rank/Emblem/Degree/Country/IsFriend). - GameMgr: HasAuthAdmin, ChangeAspectRatio(float), Update(). - Cute.SceneManager: ChangeScene overloads + SceneChangeParameter (+SceneChangeParameter stub). - UnityEngine.SceneManagement.SceneManager + Scene; RedShellSDK.RedShellSDK statics. - Packet.Attachments; Vector2.Dot/Angle/Normalize. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -20,6 +20,9 @@ namespace UnityEngine
|
||||
public float sqrMagnitude => x * x + y * y;
|
||||
public Vector2 normalized { get { float m = magnitude; return m > 1e-6f ? new Vector2(x / m, y / m) : zero; } }
|
||||
public static float Distance(Vector2 a, Vector2 b) => (a - b).magnitude;
|
||||
public static float Dot(Vector2 a, Vector2 b) => a.x * b.x + a.y * b.y;
|
||||
public static float Angle(Vector2 from, Vector2 to) => 0f;
|
||||
public void Normalize() { var n = normalized; x = n.x; y = n.y; }
|
||||
public static Vector2 Lerp(Vector2 a, Vector2 b, float t) => new Vector2(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t);
|
||||
public static Vector2 operator +(Vector2 a, Vector2 b) => new Vector2(a.x + b.x, a.y + b.y);
|
||||
public static Vector2 operator -(Vector2 a, Vector2 b) => new Vector2(a.x - b.x, a.y - b.y);
|
||||
|
||||
Reference in New Issue
Block a user