# Matrixの掛け算

![](/files/-LAM17A17pdtOZzAuz0n)

<https://scratch.mit.edu/projects/88081061/>

Matrixにも、足(た)し算(ざん)、引(ひ)き算(ざん)、掛(か)け算(ざん)などがあります。

掛(か)け算(ざん)について学(まな)びましょう。

## 掛(か)け算(ざん)

$$ \left( \begin{array}{ccc} &#x78;*{next} \ y*{next} \ z\_{next} \ 1 \ \end{array} \right) = \left(\begin{array}{ccc} \ 行列\ \ \end{array} \right) \left( \begin{array}{ccc} x \ y \ z \ 1 \ \end{array} \right)

掛(か)け算(ざん)のルールはこんな感(かん)じです。これを、Scratchで実装(じっそう)してみましょう。

## (B) Scratchで実装(じっそう)してみる

### (1) スクリプト画面(がめん)を表示(ひょうじ)する

![](/files/-LAM17BqMzM6Z_-rvlgn)

#### (1-1) 左下(ひだりした)のSprite1をクリックする

#### (1-2) スクリプトタブをクリックする

### (2) 掛(か)け算(ざん)するスクリブトを追加(ついか)する

![](/files/-LAM17CNg_rdJVRYjYZ7)

### (3) ポリゴンを表示(ひょうじ)するスクリブトを修正(しゅうせい)する

![](/files/-LAM17CxVH2x7iJ0oyUy)

### (4) 確認(かくにん)してみよう

<https://scratch.mit.edu/projects/88081061/>

#### (4-1) 旗(はた)がクリックされた時(とき)のスクリプトを変更(へんこう)する。

![](/files/-LAM17DiI_DhSCslpVGq)

#### (4-2) 右上(みぎうえ)の旗(はた)アイコンをクリックする

![](/files/-LAM17EGXpYeRlcuao__)

#### (4-3) 三角形(さんかっけい)が表示(ひょうじ)されること

### (5) Good!!

![](/files/-LAM10sJw_6R0gkIIv-5)

よくできました。次(つぎ)のステップに進(すす)みましょう。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://firefirebook.firefirestyle.net/polygon/product.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
