言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Vector4.Vector4

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public function Vector4(x: float, y: float, z: float, w: float)
public Vector4(float x, float y, float z, float w);
public def Vector4(x as float, y as float, z as float, w as float)

Description

与えられた x、y、z、w 成分で新規のベクトルを作成します

public function Vector4(x: float, y: float, z: float)
public Vector4(float x, float y, float z);
public def Vector4(x as float, y as float, z as float)

Description

x、y、z 成分でベクトルを作成した場合、 w には0が設定されます

public function Vector4(x: float, y: float)
public Vector4(float x, float y);
public def Vector4(x as float, y as float)

Description

x、y 成分でベクトルを作成した場合、 zw には0が設定されます