■ Martix 구조체의 TranslatePrepend 메소드를 사용해 매트릭스 구조체 앞에 오프셋 변환을 추가하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 |
using System.Windows.Media; Matrix matrix = new Matrix(5, 10, 15, 20, 25, 30); const double offsetX = 15; const double offsetY = 25; matrix.TranslatePrepend(offsetX, offsetY); |