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
@@ -20,7 +20,7 @@ namespace Nitload.Geometries
public abstract class PlainGeometry : IGeometry
{
protected Vec4[] vertexMat;
protected Vec3<float>[] vertexMat;
internal CoordinationBase coordinate;
internal PlainGeometry(
@@ -34,8 +34,8 @@ namespace Nitload.Geometries
int index
]
{
get => new Point(vertexMat[index]);
set => vertexMat[index].vec = value.coordVec;
get => new(vertexMat[index]);
set => vertexMat[index] = value.Coord;
}
public int VertexCount => this.vertexMat.Length;
@@ -43,9 +43,9 @@ namespace Nitload.Geometries
public abstract ReadOnlySpan<int> VertexIndices { get; }
#pragma warning disable CA1819
public Vec4[] VertexStream => vertexMat;
public Vec3<float>[] VertexStream => vertexMat;
public CoordinationBase Coordination => this.coordinate;
#pragma warning restore CA1819
}
}
}