# vector(ロブロックス ライブラリ) > A library of vector functions. - URL:https://roblox.minecraft-okinawa.com/reference/libraries/vector/ - 公式:https://create.roblox.com/docs/reference/engine/libraries/vector ## プロパティ - `vector.zero: vector`:Constant vector with all components set to 0. - `vector.one: vector`:Constant vector with all components set to 1. ## 関数 - `vector.create(x: number, y: number, z: number): vector`:Creates a new vector with the given component values. - `vector.magnitude(vec: vector): number`:Calculates the magnitude of a given vector. - `vector.normalize(vec: vector): vector`:Computes the normalized version (unit vector) of a given vector. - `vector.cross(vec1: vector, vec2: vector): vector`:Computes the cross product of two vectors. - `vector.dot(vec1: vector, vec2: vector): number`:Computes the dot product of two vectors. - `vector.angle(vec1: vector, vec2: vector, axis: vector?): number`:Computes the angle between two vectors in radians. - `vector.floor(vec: vector): vector`:Applies Library.math.floor() to every component of the input vector. - `vector.ceil(vec: vector): vector`:Applies Library.math.ceil() to every component of the input vector. - `vector.abs(vec: vector): vector`:Applies Library.math.abs() to every component of the input vector. - `vector.sign(vec: vector): vector`:Applies Library.math.sign() to every component of the input vector. - `vector.clamp(vec: vector, min: vector, max: vector): vector`:Applies Library.math.clamp() to every component of the input vector. - `vector.lerp(vec1: vector, vec2: vector, alpha: number): vector`:Returns a vector linearly interpolated between two vectors by a fractional alpha. - `vector.max(...: vector): vector`:Applies Library.math.max() to the corresponding components of the input vectors. - `vector.min(...: vector): vector`:Applies Library.math.min() to the corresponding components of the input vectors. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)