struct에 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);
}
.
.