Main Content

camlookat

객체(Object) 또는 객체 그룹을 비추도록 카메라 위치 지정

구문

camlookat(object_handles)
camlookat(axes_handle)
camlookat

설명

camlookat(object_handles)는 벡터 object_handles로 식별된 객체를 비춥니다. 이 벡터에는 axes Children의 핸들이 포함될 수 있습니다.

camlookat(axes_handle)axes_handle로 식별된 axes 자식 객체를 비춥니다.

camlookat은 카메라 위치와 카메라 대상은 이동시키고, 상대적인 보기 방향과 카메라 시야각은 유지하면서 현재 좌표축에 있는 객체를 비춥니다. 비춰지는 하나 이상의 객체가 좌표축 위치 사각형을 대략적으로 채웁니다. 비추는 뷰를 변경하기 위해 camlookat은 좌표축의 CameraPosition 속성과 CameraTarget 속성을 설정합니다.

예제

모두 축소

구를 3개 만듭니다. 그런 다음 데이터 종횡비, 보기, 투영 유형을 설정합니다.

[x,y,z] = sphere;
s1 = surf(x,y,z);
hold on
s2 = surf(x+3,y,z+3);
s3 = surf(x,y,z+6);

daspect([1 1 1])
view(30,10)
camproj perspective

Figure contains an axes object. The axes object contains 3 objects of type surface.

s1을 중심으로 장면을 구성합니다.

camlookat(s1)

Figure contains an axes object. The axes object contains 3 objects of type surface.

s2를 중심으로 장면을 구성합니다.

camlookat(s2)

Figure contains an axes object. The axes object contains 3 objects of type surface.

s3을 중심으로 장면을 구성합니다.

camlookat(s3)

Figure contains an axes object. The axes object contains 3 objects of type surface.

버전 내역

R2006a 이전에 개발됨

참고 항목

|