@next2d/geom 1.14.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,299 @@
1
+ import { Point } from "./Point";
2
+ /**
3
+ * Matrix クラスは、2 つの座標空間の間におけるポイントのマッピング方法を決定する変換マトリックスを表します。
4
+ * Matrix オブジェクトのプロパティを設定し、Matrix オブジェクトを Transform オブジェクトの matrix プロパティに適用し、
5
+ * 次に Transform オブジェクトを表示オブジェクトの transform プロパティとして適用することで、表示オブジェクトに対する各種グラフィック変換を実行できます。
6
+ * これらの変換機能には、平行移動(x と y の位置変更)、回転、拡大 / 縮小、傾斜などが含まれます。
7
+ *
8
+ * The Matrix class represents a transformation matrix that determines how to map points from one coordinate space to another.
9
+ * You can perform various graphical transformations on a display object by setting the properties of a Matrix object,
10
+ * applying that Matrix object to the matrix property of a Transform object,
11
+ * and then applying that Transform object as the transform property of the display object.
12
+ * These transformation functions include translation (x and y repositioning), rotation, scaling, and skewing.
13
+ *
14
+ * @example <caption>Example usage of Matrix.</caption>
15
+ * // new Matrix
16
+ * const {Matrix} = next2d.geom;
17
+ * const matrix = new Matrix();
18
+ * // set new Matrix
19
+ * const {MovieClip} = next2d.display;
20
+ * const movieClip = new MovieClip();
21
+ * movieClip.transform.matrix = matrix;
22
+ *
23
+ * @class
24
+ * @memberOf next2d.geom
25
+ */
26
+ export declare class Matrix {
27
+ readonly _$matrix: Float32Array;
28
+ /**
29
+ * @param {number} [a=1]
30
+ * @param {number} [b=0]
31
+ * @param {number} [c=0]
32
+ * @param {number} [d=1]
33
+ * @param {number} [tx=0]
34
+ * @param {number} [ty=0]
35
+ *
36
+ * @constructor
37
+ * @public
38
+ */
39
+ constructor(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number);
40
+ /**
41
+ * 指定されたクラスのストリングを返します。
42
+ * Returns the string representation of the specified class.
43
+ *
44
+ * @return {string}
45
+ * @default [class Matrix]
46
+ * @method
47
+ * @static
48
+ */
49
+ static toString(): string;
50
+ /**
51
+ * @description 指定されたクラスの空間名を返します。
52
+ * Returns the space name of the specified class.
53
+ *
54
+ * @member {string}
55
+ * @default next2d.geom.Matrix
56
+ * @const
57
+ * @static
58
+ */
59
+ static get namespace(): string;
60
+ /**
61
+ * @description 指定されたオブジェクトのストリングを返します。
62
+ * Returns the string representation of the specified object.
63
+ *
64
+ * @return {string}
65
+ * @method
66
+ * @public
67
+ */
68
+ toString(): string;
69
+ /**
70
+ * @description 指定されたオブジェクトの空間名を返します。
71
+ * Returns the space name of the specified object.
72
+ *
73
+ * @member {string}
74
+ * @default next2d.geom.Matrix
75
+ * @const
76
+ * @public
77
+ */
78
+ get namespace(): string;
79
+ /**
80
+ * @description イメージを拡大 / 縮小または回転するときに x 軸方向のピクセルの配置に影響を与える値です。
81
+ * The value that affects the positioning
82
+ * of pixels along the x axis when scaling or rotating an image.
83
+ *
84
+ * @member {number}
85
+ * @default 1
86
+ * @public
87
+ */
88
+ get a(): number;
89
+ set a(a: number);
90
+ /**
91
+ * @description イメージを回転または傾斜させるときに y 軸方向のピクセルの配置に影響を与える値です。
92
+ * The value that affects the positioning
93
+ * of pixels along the y axis when rotating or skewing an image.
94
+ *
95
+ * @member {number}
96
+ * @default 0
97
+ * @public
98
+ */
99
+ get b(): number;
100
+ set b(b: number);
101
+ /**
102
+ * @description イメージを回転または傾斜させるときに x 軸方向のピクセルの配置に影響を与える値です。
103
+ * The value that affects the positioning
104
+ * of pixels along the x axis when rotating or skewing an image.
105
+ *
106
+ * @member {number}
107
+ * @default 0
108
+ * @public
109
+ */
110
+ get c(): number;
111
+ set c(c: number);
112
+ /**
113
+ * @description イメージを拡大 / 縮小または回転するときに y 軸方向のピクセルの配置に影響を与える値です。
114
+ * The value that affects the positioning
115
+ * of pixels along the y axis when scaling or rotating an image.
116
+ *
117
+ * @member {number}
118
+ * @default 1
119
+ * @public
120
+ */
121
+ get d(): number;
122
+ set d(d: number);
123
+ /**
124
+ * @description x 軸方向に各ポイントを平行移動する距離です。
125
+ * The distance by which to translate each point along the x axis.
126
+ *
127
+ * @member {number}
128
+ * @default 0
129
+ * @public
130
+ */
131
+ get tx(): number;
132
+ set tx(tx: number);
133
+ /**
134
+ * @description y 軸方向に各ポイントを平行移動する距離です。
135
+ * The distance by which to translate each point along the y axis.
136
+ *
137
+ * @member {number}
138
+ * @default 0
139
+ * @public
140
+ */
141
+ get ty(): number;
142
+ set ty(ty: number);
143
+ /**
144
+ * @return {Matrix}
145
+ * @method
146
+ * @private
147
+ */
148
+ _$clone(): Matrix;
149
+ /**
150
+ * @description 新しい Matrix オブジェクトとして、このマトリックスのクローンを返します。
151
+ * 含まれるオブジェクトはまったく同じコピーになります。
152
+ * Returns a new Matrix object that is a clone of this matrix,
153
+ * with an exact copy of the contained object.
154
+ *
155
+ * @return {Matrix}
156
+ * @method
157
+ * @public
158
+ */
159
+ clone(): Matrix;
160
+ /**
161
+ * @description マトリックスを現在のマトリックスと連結して、
162
+ * 2 つのマトリックスの図形効果を効果的に組み合わせます。
163
+ * Concatenates a matrix with the current matrix,
164
+ * effectively combining the geometric effects of the two.
165
+ *
166
+ * @param {Matrix} m
167
+ * @return {void}
168
+ * @method
169
+ * @public
170
+ */
171
+ concat(m: Matrix): void;
172
+ /**
173
+ * @description すべてのマトリックスデータを、ソース Matrix オブジェクトから、
174
+ * 呼び出し元の Matrix オブジェクトにコピーします。
175
+ *
176
+ * @param {Matrix} source_matrix
177
+ * @method
178
+ * @return {void}
179
+ */
180
+ copyFrom(source_matrix: Matrix): void;
181
+ /**
182
+ * @description 拡大 / 縮小、回転、平行移動に関するパラメーターなどがあります。
183
+ * Includes parameters for scaling, rotation, and translation.
184
+ *
185
+ * @param {number} scale_x
186
+ * @param {number} scale_y
187
+ * @param {number} [rotation=0]
188
+ * @param {number} [tx=0]
189
+ * @param {number} [ty=0]
190
+ * @return {void}
191
+ * @method
192
+ * @public
193
+ */
194
+ createBox(scale_x: number, scale_y: number, rotation?: number, tx?: number, ty?: number): void;
195
+ /**
196
+ * @description Graphics クラスの beginGradientFill() メソッドで使用する特定のスタイルを作成します。
197
+ * Creates the specific style of matrix expected
198
+ * by the beginGradientFill() and lineGradientStyle() methods of the Graphics class.
199
+ *
200
+ * @param {number} width
201
+ * @param {number} height
202
+ * @param {number} [rotation=0]
203
+ * @param {number} [tx=0]
204
+ * @param {number} [ty=0]
205
+ * @return {void}
206
+ * @method
207
+ * @public
208
+ */
209
+ createGradientBox(width: number, height: number, rotation?: number, tx?: number, ty?: number): void;
210
+ /**
211
+ * @description 変換前の座標空間内のポイントが指定されると、そのポイントの変換後の座標を返します。
212
+ * Given a point in the pretransform coordinate space,
213
+ * returns the coordinates of that point after the transformation occurs.
214
+ *
215
+ * @param {Point} point
216
+ * @return {Point}
217
+ * @method
218
+ * @public
219
+ */
220
+ deltaTransformPoint(point: Point): Point;
221
+ /**
222
+ * @description 各行列プロパティを null 変換になる値に設定します。
223
+ * Sets each matrix property to a value that causes a null transformation.
224
+ *
225
+ * @return {void}
226
+ * @method
227
+ * @public
228
+ */
229
+ identity(): void;
230
+ /**
231
+ * @description 元のマトリックスの逆の変換を実行します。
232
+ * Performs the opposite transformation of the original matrix.
233
+ *
234
+ * @return {void}
235
+ * @method
236
+ * @public
237
+ */
238
+ invert(): void;
239
+ /**
240
+ * @description Matrix オブジェクトに回転変換を適用します。
241
+ * Applies a rotation transformation to the Matrix object.
242
+ *
243
+ * @param {number} rotation
244
+ * @return {void}
245
+ * @method
246
+ * @public
247
+ */
248
+ rotate(rotation: number): void;
249
+ /**
250
+ * @description 行列に拡大 / 縮小の変換を適用します。
251
+ * Applies a scaling transformation to the matrix.
252
+ *
253
+ * @param {number} sx
254
+ * @param {number} sy
255
+ * @return {void}
256
+ * @method
257
+ * @public
258
+ */
259
+ scale(sx: number, sy: number): void;
260
+ /**
261
+ * @description Matrix のメンバーを指定の値に設定します。
262
+ * Sets the members of Matrix to the specified values
263
+ *
264
+ * @param {number} a
265
+ * @param {number} b
266
+ * @param {number} c
267
+ * @param {number} d
268
+ * @param {number} tx
269
+ * @param {number} ty
270
+ * @return {void}
271
+ * @method
272
+ * @public
273
+ */
274
+ setTo(a: number, b: number, c: number, d: number, tx: number, ty: number): void;
275
+ /**
276
+ * @description Matrix オブジェクトで表現される図形変換を、指定されたポイントに適用した結果を返します。
277
+ * Returns the result of applying the geometric transformation represented
278
+ * by the Matrix object to the specified point.
279
+ *
280
+ * @param {Point} point
281
+ * @return {Point}
282
+ * @method
283
+ * @public
284
+ */
285
+ transformPoint(point: Point): Point;
286
+ /**
287
+ * @description 行列を x 軸と y 軸に沿って、
288
+ * dx パラメーターと dy パラメーターで指定された量だけ平行移動します。
289
+ * Translates the matrix along the x and y axes,
290
+ * as specified by the dx and dy parameters.
291
+ *
292
+ * @param {number} dx
293
+ * @param {number} dy
294
+ * @return {void}
295
+ * @method
296
+ * @public
297
+ */
298
+ translate(dx: number, dy: number): void;
299
+ }