rename ungenericed graphic vec usage to genericed

This commit is contained in:
Youmu Liu
2026-09-04 18:51:27 +08:00
parent 41ca31fd9a
commit ee67dfbde1
20 changed files with 755 additions and 760 deletions
@@ -21,24 +21,24 @@ namespace Nitload.Geometries
public PlainCoordinate(
CoordinationBase local,
Point origin,
Vec3 xAxis,
Vec3 yAxis
Vec3<float> xAxis,
Vec3<float> yAxis
)
: base(local)
{
CoordMat = GraphicsMatrix.Unit;
CoordMat.column[0] = new Vec4(xAxis, 0);
CoordMat.column[1] = new Vec4(yAxis, 0);
CoordMat.column[2] = new Vec4(Linear.Normalize(Vec3.Cross(xAxis, yAxis)), 0);
CoordMat.column[0] = new Vec4<float>(xAxis, 0);
CoordMat.column[1] = new Vec4<float>(yAxis, 0);
CoordMat.column[2] = new Vec4<float>(Linear.Normalize(Vec3.Cross(xAxis, yAxis)), 0);
LocalOrigin = origin;
}
public static PlainCoordinate StandardPlainCoordination { get; } = new(null,
public static PlainCoordinate StandardPlainCoordination { get; } = new(default,
new Point(0, 0, 0),
new Vec3(1, 0, 0),
new Vec3(0, 1, 0));
new Vec3<float>(1, 0, 0),
new Vec3<float>(0, 1, 0));
}
}