12345678910111213141516171819202122232425262728293031323334353637 |
- 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];
- }
- }
- }
|