|
@@ -1,37 +0,0 @@
|
|
|
-using System;
|
|
|
-using System.Collections.Generic;
|
|
|
-using System.Linq;
|
|
|
-using System.Text;
|
|
|
-using System.Threading.Tasks;
|
|
|
-
|
|
|
-using MathNet.Numerics.LinearAlgebra.Single;
|
|
|
-
|
|
|
-namespace bbiwarg.DataSource
|
|
|
-{
|
|
|
- class VertexArray
|
|
|
- {
|
|
|
- private Vector[] positions;
|
|
|
- private Color4[] colors;
|
|
|
-
|
|
|
- public VertexArray(Vector[] positions, Color4[] colors)
|
|
|
- {
|
|
|
- this.positions = positions;
|
|
|
- this.colors = colors;
|
|
|
- }
|
|
|
-
|
|
|
- public int getNumVertices()
|
|
|
- {
|
|
|
- return positions.Length;
|
|
|
- }
|
|
|
-
|
|
|
- public Vector getPosition(int index)
|
|
|
- {
|
|
|
- return positions[index];
|
|
|
- }
|
|
|
-
|
|
|
- public Color4 getColor(int index)
|
|
|
- {
|
|
|
- return colors[index];
|
|
|
- }
|
|
|
- }
|
|
|
-}
|