refactor(Hi.Sample)!: Box3d, Tri3d, DVec3d and Box2d are named box3d_t, tri3d_t, dvec3d_t and box2d_t -- the C++ typedef names, following HiGeom; the Hi.Native vec3d/tri3d/box3d mirrors are the Hi.Geom values now and vec3f is Hi.Geom.vec3f_t (a word-boundary identifier rename; compound names, string literals and the wire kind names are untouched)
BREAKING CHANGE: source that names these types must use the _t names; the Hi.Native mirrors are gone. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -21,9 +21,9 @@ namespace Sample.Disp
|
||||
double angle_moon;
|
||||
DemoSatellite()
|
||||
{
|
||||
sun = Box3d.CenterUnitBox.ScaledFromCenter(4).ToDraw_Face();
|
||||
earth = Box3d.CenterUnitBox.ScaledFromCenter(2).ToDraw_Face();
|
||||
moon = Box3d.CenterUnitBox.ToDraw_Face();
|
||||
sun = box3d_t.CenterUnitBox.ScaledFromCenter(4).ToDraw_Face();
|
||||
earth = box3d_t.CenterUnitBox.ScaledFromCenter(2).ToDraw_Face();
|
||||
moon = box3d_t.CenterUnitBox.ToDraw_Face();
|
||||
}
|
||||
/// <inheritdoc/>
|
||||
public void Display(Bind bind)
|
||||
@@ -41,7 +41,7 @@ namespace Sample.Disp
|
||||
bind.ModelMatStack.Pop();
|
||||
}
|
||||
/// <inheritdoc/>
|
||||
public void ExpandToBox3d(ref Box3d dst)
|
||||
public void ExpandToBox3d(ref box3d_t dst)
|
||||
{
|
||||
dst = dst.Expanded(new vec3d_t(-14, -14, -2));
|
||||
dst = dst.Expanded(new vec3d_t(14, 14, 2));
|
||||
|
||||
Reference in New Issue
Block a user