1

次のコードがあります(現在はテストのみ)

 PlotPoint[] starLocations = new PlotPoint[4];
 starLocations[0] = new PlotPoint(9,-2,1);
 starLocations[1] = new PlotPoint(-3,6,1);
 starLocations[2] = new PlotPoint(4,2,-3);
 starLocations[3] = new PlotPoint(7,-8,9);

 //draw the sector map
 SectorMap ourMap = new SectorMap();

 ourMap.reDraw(PlotPoint.getILLocs(starLocations));

SectorMap.cs

public void reDraw(float[,] givenLocs){
 ILArray<float> ourPositions = givenLocs;
 textBox1.Text = ourPositions.ToString();

 var scene = new ILScene();
 var plotCube = scene.Add(new ILPlotCube(false));
 var ourPosBuffer = new ILPoints();
 ourPosBuffer.Positions = ourPositions;
 ourPosBuffer.Size = 3;

 plotCube.Add(ourPosBuffer);
 iLStarChart.Scene = scene;      
}

これを行うと、PlotPoint.getILLocs で行列を確認すると、4x3 の行列が得られます。渡された行列を確認すると、再び 3x4 です

SectorMap.cs の ourPositions を確認すると、3x4 の行列になっています。これは私が意図していなかったものです。私は何を間違っていますか?

4

1 に答える 1