Category:LSL Vector/ja

From Second Life Wiki
< Category:LSL Vector
Revision as of 23:18, 4 December 2007 by Coffee Mills (talk | contribs) (New page: {{Multi-lang}} {{LSL Header}} ==Vector== vectorは3個のfloatの値のセットを含むデータ型(type)である. 各要素は変数名...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Vector

vectorは3個のfloatの値のセットを含むデータ型(type)である. 各要素は変数名の後に .x, .y, .zを付加することにより個別にアクセスできる.

vector型は次のデータを保持するために使うことができる:

  • 位置: x, y, zの単位はm(メートル).
  • 速度: x, y, zはスピードを表す.
  • : Redはx, Greenはy, Blueはz.

vector型は次の操作をサポートしている:

  • 加算, "+" 演算子
  • 減算, "-" 演算子
  • 乗算 (内積), "*" 演算子
  • 外積, "%" 演算子

vector型はQuaternionの乗算または除算によって回転させることができる.

vector test=<1.0, 2.0, 3.0>;
llOwnerSay((string)test.z); // 3.0を出力する

Pages in category "LSL Vector/ja"

The following 6 pages are in this category, out of 6 total.