Ver. | メソッドの書式 | 戻り値 | メソッドの説明 |
---|
| | パラメータ | 値 | | パラメータの説明 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
add([horizontalScaleFactor], [verticalScaleFactor], [clockwiseShearAngle], [counterclockwiseRotationAngle], [horizontalTranslation], [verticalTranslation], [matrixValues], [matrixMapping], [withProperties]) |
TransformationMatrix | 新しいオブジェクトを作成し、それを返す |
| [horizontalScaleFactor] |
数値 | | 水平方向の倍率 |
| [verticalScaleFactor] |
数値 | | 垂直方向の倍率 |
| [clockwiseShearAngle] |
数値 | | シアーの角度 |
| [counterclockwiseRotationAngle] |
数値 | | 回転の角度 |
| [horizontalTranslation] |
数値 | | The horizontal translation of the transformation matrix |
| [verticalTranslation] |
数値 | | The vertical translation of the transformation matrix |
| [matrixValues] |
Array( 数値 ) | | The values of the transformation matrix |
| [matrixMapping] |
Array of Array of 2 Arrays of 2 Reals | | The mapping the transformation matrix performs on the unit triangle. |
| [withProperties] |
Object | | プロパティを設定 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
anyItem() |
TransformationMatrix | どれかのオブジェクトを返す |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
count() |
数値 | 要素数を返す |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
everyItem() |
Array( TransformationMatrix ) | 全てのオブジェクトを返す |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
firstItem() |
TransformationMatrix | 最初のオブジェクトを返す |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
item(index) |
TransformationMatrix | インデックスまたは名前で指定したオブジェクトを返す |
| index |
数値, 文字列値 | | インデックスまたは名前 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
itemByName(name) |
TransformationMatrix | 名前で指定したオブジェクトを返す |
| name |
文字列値 | | |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
itemByRange(from, to) |
Array( TransformationMatrix ) | 範囲で指定したオブジェクトを返す |
| from |
TransformationMatrix, 数値, 文字列値 | | 範囲の開始 |
| to |
TransformationMatrix, 数値, 文字列値 | | 範囲の終了 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
lastItem() |
TransformationMatrix | 最後のオブジェクトを返す |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
middleItem() |
TransformationMatrix | 真ん中のオブジェクトを返す |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
nextItem(obj) |
TransformationMatrix | 一つ後のオブジェクトを返す |
| obj |
TransformationMatrix | | 位置の基準になるオブジェクト |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
previousItem(obj) |
TransformationMatrix | 一つ前のオブジェクトを返す |
| obj |
TransformationMatrix | | 位置の基準になるオブジェクト |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
toSource() |
文字列値 | ソースコードを表す文字列を返す |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 |
---|
| | パラメータ | 値 | | パラメータの説明 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
addEventListener(eventType, handler, [captures]) |
EventListener | EventListenerを作成 |
| eventType |
文字列値 | | |
| handler |
ファイル, JavaScript関数 | | |
| [captures] |
真偽値 | | (廃止) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
catenateMatrix(withMatrix) |
TransformationMatrix | Multiply the transformation matrix by another. |
| withMatrix |
TransformationMatrix | | The right hand matrix factor |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
changeCoordinates(point) |
Array( 数値 ) | Multiply the point by the matrix. |
| point |
Array( 数値 ) | | The point to transform |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
getElements() |
Array( TransformationMatrix ) | オブジェクト参照を返す |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
invertMatrix() |
TransformationMatrix | Invert the transformation matrix. |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
removeEventListener(eventType, handler, [captures]) |
真偽値 | EventListenerを削除 |
| eventType |
文字列値 | | |
| handler |
ファイル, JavaScript関数 | | |
| [captures] |
真偽値 | | (廃止) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
rotateMatrix([byAngle], [byCosine], [bySine]) |
TransformationMatrix | Rotate the transformation matrix. |
| [byAngle] |
数値 | | 回転角 |
| [byCosine] |
数値 | | コサイン |
| [bySine] |
数値 | | サイン |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
scaleMatrix([horizontallyBy], [verticallyBy]) |
TransformationMatrix | Scale the transformation matrix. |
| [horizontallyBy] |
数値 | | The horizontal scale factor |
| [verticallyBy] |
数値 | | The vertical scale factor |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
shearMatrix([byAngle], [bySlope]) |
TransformationMatrix | Shear the transformation matrix. |
| [byAngle] |
数値 | | 水平方向の角度 |
| [bySlope] |
数値 | | The horizontal shear slope |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
toSource() |
文字列値 | ソースコードを表す文字列を返す |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
toSpecifier() |
文字列値 | Retrieves the object specifier. |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
translateMatrix([horizontallyBy], [verticallyBy]) |
TransformationMatrix | Translate the transformation matrix. |
| [horizontallyBy] |
数値 | | The horizontal translation distance |
| [verticallyBy] |
数値 | | The vertical translation distance |