構造体にPoint3Dの型を持つ "points"という名前の配列があり、メソッド内でこれらの点を使用するようにしたいとしましょう。 どのように構造体からメソッドに転送するには? 以下はコードスニペットのものです。変数を構造体からメソッドに転送する方法は?
よろしく
Cemil
public MeshGeometry3D GetMesh3D()
{
**(just here, we want to use the 3D points coming from the GetVortices method.)**
}
public Point3D[] GetVortices()
{
points[0] = new Point3D(1,1,1);
.
points[100] = new Point3D(3,1,5);
}
.
.