From 46bfea4a87b35a3854d722c259c433581aed032a Mon Sep 17 00:00:00 2001 From: iambossTC Date: Fri, 25 Sep 2026 15:48:56 +0800 Subject: [PATCH] refactor(Hi.Sample): Mat4d is spelled mat4d_t -- the workspace-wide word-boundary rename that follows HiGeom naming the matrix struct after the C++ typedef; compound identifiers (GetMat4dMap, Mat4dKey, ProgramZeroToGeomMat4d, ...) and the "Mat4d" JSON key keep their spelling, no behaviour changes Co-Authored-By: Claude Fable 5.1 --- Disp/DemoSatellite.cs | 10 +++++----- Mech/DemoTopo1.cs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Disp/DemoSatellite.cs b/Disp/DemoSatellite.cs index 265b755..ba601e8 100644 --- a/Disp/DemoSatellite.cs +++ b/Disp/DemoSatellite.cs @@ -6,7 +6,7 @@ namespace Sample.Disp /// /// Demonstrates a simple solar system animation using interface. /// Shows how to create a hierarchical transform structure with sun, earth and moon using - /// matrices and model matrix stack transformations. + /// matrices and model matrix stack transformations. /// /// /// ### Source Code @@ -30,12 +30,12 @@ namespace Sample.Disp { sun.Display(bind); bind.ModelMatStack.Push(); - bind.ModelMatStack.Mul(new Mat4d(new AxisAngle4d(new vec3d_t(0, 0, 1), angle_earth += 0.03))); - bind.ModelMatStack.Mul(new Mat4d(new vec3d_t(12, 0, 0))); + bind.ModelMatStack.Mul(new mat4d_t(new AxisAngle4d(new vec3d_t(0, 0, 1), angle_earth += 0.03))); + bind.ModelMatStack.Mul(new mat4d_t(new vec3d_t(12, 0, 0))); earth.Display(bind); bind.ModelMatStack.Push(); - bind.ModelMatStack.Mul(new Mat4d(new AxisAngle4d(new vec3d_t(0, 0, 1), angle_moon += 0.02))); - bind.ModelMatStack.Mul(new Mat4d(new vec3d_t(4, 0, 0))); + bind.ModelMatStack.Mul(new mat4d_t(new AxisAngle4d(new vec3d_t(0, 0, 1), angle_moon += 0.02))); + bind.ModelMatStack.Mul(new mat4d_t(new vec3d_t(4, 0, 0))); moon.Display(bind); bind.ModelMatStack.Pop(); bind.ModelMatStack.Pop(); diff --git a/Mech/DemoTopo1.cs b/Mech/DemoTopo1.cs index 518020a..23e7742 100644 --- a/Mech/DemoTopo1.cs +++ b/Mech/DemoTopo1.cs @@ -44,9 +44,9 @@ public static class DemoTopo1 brnB.Step = MathUtil.ToRad(-60); //Get and show the transform matrices relative to O. - Dictionary matMap = asmb.GetMat4dMap(O); + Dictionary matMap = asmb.GetMat4dMap(O); Console.WriteLine("Transform Matrix relative to O:"); - foreach (KeyValuePair keyValue in matMap) + foreach (KeyValuePair keyValue in matMap) Console.WriteLine($"{keyValue.Key.Name} : {keyValue.Value}"); #endregion