rename ungenericed graphic vec usage to genericed
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user