Name | Type | Default | Description |
---|---|---|---|
a | number | 1 | optional |
b | number | 0 | optional |
c | number | 0 | optional |
d | number | 1 | optional |
tx | number | 0 | optional |
ty | number | 0 | optional |
Example
Example usage of Matrix.
// new Matrix
const {Matrix} = next2d.geom;
const matrix = new Matrix();
// set new Matrix
const {MovieClip} = next2d.display;
const movieClip = new MovieClip();
movieClip.transform.matrix = matrix;
Members
指定されたクラスの空間名を返します。
Returns the space name of the specified class.- Default Value:
- next2d.geom.Matrix
イメージを拡大 / 縮小または回転するときに x 軸方向のピクセルの配置に影響を与える値です。
The value that affects the positioning
of pixels along the x axis when scaling or rotating an image.- Default Value:
- 1
イメージを回転または傾斜させるときに y 軸方向のピクセルの配置に影響を与える値です。
The value that affects the positioning
of pixels along the y axis when rotating or skewing an image.- Default Value:
- 0
イメージを回転または傾斜させるときに x 軸方向のピクセルの配置に影響を与える値です。
The value that affects the positioning
of pixels along the x axis when rotating or skewing an image.- Default Value:
- 0
イメージを拡大 / 縮小または回転するときに y 軸方向のピクセルの配置に影響を与える値です。
The value that affects the positioning
of pixels along the y axis when scaling or rotating an image.- Default Value:
- 1
指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.- Default Value:
- next2d.geom.Matrix
x 軸方向に各ポイントを平行移動する距離です。
The distance by which to translate each point along the x axis.- Default Value:
- 0
y 軸方向に各ポイントを平行移動する距離です。
The distance by which to translate each point along the y axis.- Default Value:
- 0
Methods
指定されたクラスのストリングを返します。
Returns the string representation of the specified class.- Default Value:
- [class Matrix]
Returns:
Type Description string 新しい Matrix オブジェクトとして、このマトリックスのクローンを返します。
含まれるオブジェクトはまったく同じコピーになります。
Returns a new Matrix object that is a clone of this matrix,
with an exact copy of the contained object.Returns:
Type Description Matrix マトリックスを現在のマトリックスと連結して、
2 つのマトリックスの図形効果を効果的に組み合わせます。
Concatenates a matrix with the current matrix,
effectively combining the geometric effects of the two.Name Type Description m
Matrix Returns:
Type Description void すべてのマトリックスデータを、ソース Matrix オブジェクトから、
呼び出し元の Matrix オブジェクトにコピーします。Name Type Description source_matrix
Matrix Returns:
Type Description void 拡大 / 縮小、回転、平行移動に関するパラメーターなどがあります。
Includes parameters for scaling, rotation, and translation.Name Type Default Description scale_x
number scale_y
number rotation
number 0 optional tx
number 0 optional ty
number 0 optional Returns:
Type Description void Graphics クラスの beginGradientFill() メソッドで使用する特定のスタイルを作成します。
Creates the specific style of matrix expected
by the beginGradientFill() and lineGradientStyle() methods of the Graphics class.Name Type Default Description width
number height
number rotation
number 0 optional tx
number 0 optional ty
number 0 optional Returns:
Type Description void 変換前の座標空間内のポイントが指定されると、そのポイントの変換後の座標を返します。
Given a point in the pretransform coordinate space,
returns the coordinates of that point after the transformation occurs.Name Type Description point
Point Returns:
Type Description Point 各行列プロパティを null 変換になる値に設定します。
Sets each matrix property to a value that causes a null transformation.Returns:
Type Description void 元のマトリックスの逆の変換を実行します。
Performs the opposite transformation of the original matrix.Returns:
Type Description void Matrix オブジェクトに回転変換を適用します。
Applies a rotation transformation to the Matrix object.Name Type Description rotation
number Returns:
Type Description void 行列に拡大 / 縮小の変換を適用します。
Applies a scaling transformation to the matrix.Name Type Description sx
number sy
number Returns:
Type Description void Matrix のメンバーを指定の値に設定します。
Sets the members of Matrix to the specified valuesName Type Description a
number b
number c
number d
number tx
number ty
number Returns:
Type Description void 指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.Returns:
Type Description string Matrix オブジェクトで表現される図形変換を、指定されたポイントに適用した結果を返します。
Returns the result of applying the geometric transformation represented
by the Matrix object to the specified point.Name Type Description point
Point Returns:
Type Description Point 行列を x 軸と y 軸に沿って、
dx パラメーターと dy パラメーターで指定された量だけ平行移動します。
Translates the matrix along the x and y axes,
as specified by the dx and dy parameters.Name Type Description dx
number dy
number Returns:
Type Description void