学ぶ
エンジンデータ型
Vector2

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。



APIリファレンス
コンストラクタ
new
Vector2.new(
パラメータ

プロパティ
X
Vector2.X:number

Y
Vector2.Y:number

Magnitude
Vector2.Magnitude:number

Unit
Vector2.Unit:Vector2

方法
Cross
Vector2:Cross(other:Vector2):number
パラメータ
other:Vector2
戻り値

Abs
Vector2:Abs():Vector2
戻り値

Ceil
Vector2:Ceil():Vector2
戻り値

Floor
Vector2:Floor():Vector2
戻り値

Sign
Vector2:Sign():Vector2
戻り値

Angle
Vector2:Angle(
other:Vector2, isSigned:boolean
パラメータ
other:Vector2
isSigned:boolean
既定値: false
戻り値

Dot
Vector2:Dot(v:Vector2):number
パラメータ
戻り値

Lerp
Vector2:Lerp(
v:Vector2, alpha:number
パラメータ
alpha:number
戻り値

Max
Vector2:Max(others...:Tuple):Vector2
パラメータ
others...:Tuple
戻り値

Min
Vector2:Min(others...:Tuple):Vector2
パラメータ
others...:Tuple
戻り値

FuzzyEq
Vector2:FuzzyEq(
other:Vector2, epsilon:number
パラメータ
other:Vector2
epsilon:number
既定値: 0.00001 (1e-5)
戻り値

演算機能
Vector2 + Vector2

Vector2 - Vector2

Vector2 * Vector2

Vector2 / Vector2

Vector2 * number

Vector2 / number

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。