Matrix.Transformation2D 메서드
업데이트: 2007년 11월
xy 평면에 2차원 변환 매트릭스를 만듭니다.
네임스페이스: Microsoft.WindowsMobile.DirectX
어셈블리: Microsoft.WindowsMobile.DirectX(Microsoft.WindowsMobile.DirectX.dll)
구문
‘선언
Public Shared Function Transformation2D ( _
scalingCenter As Vector2, _
scalingRotation As Single, _
scaling As Vector2, _
rotationCenter As Vector2, _
rotation As Single, _
translation As Vector2 _
) As Matrix
‘사용 방법
Dim scalingCenter As Vector2
Dim scalingRotation As Single
Dim scaling As Vector2
Dim rotationCenter As Vector2
Dim rotation As Single
Dim translation As Vector2
Dim returnValue As Matrix
returnValue = Matrix.Transformation2D(scalingCenter, _
scalingRotation, scaling, rotationCenter, _
rotation, translation)
public static Matrix Transformation2D(
Vector2 scalingCenter,
float scalingRotation,
Vector2 scaling,
Vector2 rotationCenter,
float rotation,
Vector2 translation
)
public:
static Matrix Transformation2D(
Vector2 scalingCenter,
float scalingRotation,
Vector2 scaling,
Vector2 rotationCenter,
float rotation,
Vector2 translation
)
public static function Transformation2D(
scalingCenter : Vector2,
scalingRotation : float,
scaling : Vector2,
rotationCenter : Vector2,
rotation : float,
translation : Vector2
) : Matrix
매개 변수
scalingCenter
형식: Microsoft.WindowsMobile.DirectX.Vector2크기 조정의 중심점인 Vector2 구조체입니다.
scalingRotation
형식: System.Single크기 조정 및 회전 계수입니다. 회전하지 않도록 지정하려면 0을 사용합니다.
scaling
형식: Microsoft.WindowsMobile.DirectX.Vector2
rotationCenter
형식: Microsoft.WindowsMobile.DirectX.Vector2회전의 중심점인 Vector2 구조체입니다.
rotation
형식: System.Single라디안 단위의 회전 각도입니다.
translation
형식: Microsoft.WindowsMobile.DirectX.Vector2
반환 값
형식: Microsoft.WindowsMobile.DirectX.Matrix
변환 매트릭스를 포함하는 Matrix 구조체입니다.
설명
Transformation2D 메서드는 왼쪽에서 오른쪽으로 매트릭스를 연결하도록 계산되는 다음 수식을 사용하여 관계 변환 매트릭스를 계산합니다.
M out = (M sc)-1 * (M sr)-1 * M s * M sr * M sc * (M rc)-1 * M r * M rc * M t
다음은 각 문자에 대한 설명입니다.
M out = 출력 변환 매트릭스(반환 값)
M sc = 크기 조정 중심 매트릭스(scalingCenter)
M sr = 크기 조정 및 회전 매트릭스(scalingRotation)
M s = 크기 조정 매트릭스(scaling)
M rc = 회전 매트릭스의 중심(rotationCenter)
M r = 회전 매트릭스(rotation)
M t = 이동 매트릭스(translation)
3차원 변환인 경우 Transformation을 사용합니다.
권한
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.
플랫폼
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Compact Framework
3.5, 2.0에서 지원