Translation:Transformations and Nested Page Items
From IDMLWiki
変換と入れ子のページオブジェクト
下記は30度回転され、別の長方形の中にペーストされた長方形の例です。外側の長方形はさらに15度回転させます。
<Rectangle Self="ucd" ItemTransform="0.9659258262890683 -0.25881904510252074 0.25881904510252074 0.9659258262890683 0 0"><Properties><PathGeometry><GeometryPath PathOpen="false"><PathPointArray><PathPointType Anchor="72 -324" LeftDirection="72 -324"RightDirection="72 -324"/><PathPointType Anchor="72 -252" LeftDirection="72 -252"RightDirection="72 -252"/><PathPointType Anchor="144 -252" LeftDirection="144 -252"RightDirection="144 -252"/><PathPointType Anchor="144 -324" LeftDirection="144 -324"RightDirection="144 -324"/></PathPointArray></GeometryPath></PathGeometry></Properties><Rectangle Self="uda" ItemTransform="0.8660254037844387 -0.5 0.5 0.8660254037844387 0 0"><Properties><PathGeometry><GeometryPath PathOpen="false"><PathPointArray><PathPointType Anchor="84 -312" LeftDirection="84 -312"RightDirection="84 -312"/><PathPointType Anchor="84 -288" LeftDirection="84 -288"RightDirection="84 -288"/><PathPointType Anchor="108 -288" LeftDirection="108 -288"RightDirection="108 -288"/><PathPointType Anchor="108 -312" LeftDirection="108 -312"RightDirection="108 -312"/></PathPointArray></GeometryPath></PathGeometry></Properties></Rectangle></Rectangle>
図17 外側の長方形
図18 内側の長方形
InDesignのUIでみると、回転が重なっています。(内側の長方形の回転角度が、元々の角度と外側の回転角度の合計になっている)IDMLの変換行列の例では、この回転を反映しています。下記は外側の長方形(前述で設定済み)の変換行列の例です。
a = 0.9659258262890683 = コサイン15度
b = -0.25881904510252074 = サイン-15度
c = 0.25881904510252074 = サイン15度
d = 0.9659258262890683 = コサイン15度
下記は内側の長方形の変換行列の例です。
a = 0.8660254037844387 = コサイン30度
b = -0.5000000000000001 = サイン-30度
c = 0.5000000000000001 = サイン30度
d = 0.8660254037844387 = コサイン30度


