Vector3int16
*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。
データタイプ Datatype.Vector3int16 は、Vector3int16 のベクトルを 3D 空間に表示し、そのコンポーネントに対して サイン付きの 16 ビット整数 を返します。Vector3 と同じアリスメリックオプレーションを提供しま
Vector3int16 は 違うことがあるべきではありません。
- Vector3 、3D ベクトルの精密な実装と完全な実装を提供します。
- Vector2int16 、2D ベクトルの実装に似ています。
各コンポーネントの場合:
- 下のバインドは -2 15 、または -32,768 です。
- 上限は 2 15 - 1、または 32,767 です。
Vector3 に変換
Datatype.Vector3int16 を Vector3 に変換するには、Vector3 を作成し、1>Datatype. Vector31> の各コンポーネントを通過して、4>Datatype. Vector3int164> を 7>Datatype. Vector3.new()7> に
local vector3int16 = Vector3int16.new(1, 2, 3)local vector3 = Vector3.new(vector3int16.X, vector3int16.Y, vector3int16.Z)print(vector3) --> 1, 2, 3
Do not pass an entire Vector3int16 to Vector3.new() , as the constructor interprets a 1> Datatype.Vector3int161> as a 4> 04> within its parameters 7> without producing an error7> . This can lead to silent logic errors if you do something
local vector3int16 = Vector3int16.new(1, 2, 3)local vector3 = Vector3.new(vector3int16)print(vector3) --> 0, 0, 0
数学オペレーション
次の数学操作は、Vector3int16データタイプのデータタイプで有効です。すべてのオペレーションには、以前に説明した 16ビットの整数に関連する制限を注意してください。
<tbody><tr><td><code>Datatype.Vector3int16</code> <code>+</code> <code>Datatype.Vector3int16</code></td><td>Datatype.Vector3int16 を生成するが、そのコンポーネントはオペレータンの個々のコンポーネントの合計です。</td></tr><tr><td><code>Datatype.Vector3int16</code> <code>-</code> <code>Datatype.Vector3int16</code></td><td>データタイプのベクトル化を生成する <code>Datatype.Vector3int16</code> のコンポーネントは、オペレンドのそれぞれのコンポーネントの差です。</td></tr><tr><td><code>Datatype.Vector3int16</code> <code>\*</code> <code>Datatype.Vector3int16</code></td><td>コンポーネントは、<code>Datatype.Vector3int16</code> のコンポーネントで、それぞれのコンポーネントのコンポーネントです。</td></tr><tr><td><code>Datatype.Vector3int16</code> <code>/</code> <code>Datatype.Vector3int16</code></td><td>Datatype.Vector3int16 を生成するが、そのコンポーネントはオペレータンの個々のコンポーネントの quotient です。結果はラウンドダウンされます。</td></tr><tr><td><code>Datatype.Vector3int16</code> <code>\*</code> <code>number</code></td><td>プロデュースする <code>Datatype.Vector3int16</code> のコンポーネントは、それぞれ <code>Datatype.Vector3int16</code> コンポーネントと数値 (要素) です。このオペレーションは、オペレーション です。</td></tr><tr><td><code>Datatype.Vector3int16</code> <code>/</code> <code>number</code></td><td>Datatype.Vector3int16 のコンポーネントは、それぞれ <code>Datatype.Vector3int16</code> のコンポーネントと数値 (divisor) です。結果は、0 にラウンドされます。</td></tr></tbody>
オペレーション | 説明 |
---|
概要
プロパティ
Datatype.Vector3int16 の x-座標。
Datatype.Vector3int16 の yコーディネート。
Datatype.Vector3int16 の z コーディネート。
演算機能
Datatype.Vector3int16 を生成するが、そのコンポーネントはオペレータの個々のコンポーネントの合計です。
Datatype.Vector3int16 を生成するが、そのコンポーネントはオペレータのそれぞれのコンポーネントの差です。
Datatype.Vector3int16 を生成するが、そのコンポーネントはオペレータのそれぞれのコンポーネントの製品です。
Datatype.Vector3int16 のコンポーネントは、オペレータンドの個々のコンポーネントの quotient です。結果はラウンドダウンされます。
Datatype.Vector3int16 のコンポーネントは、それぞれ Vector3int16 コンポーネントと数値 (ファクター) です。このオペレーションは、Datatype.Vector3int16 のコンポーネントです。
Datatype.Vector3int16 のコンポーネントは、それぞれ Vector3int16 のコンポーネントと数値 (分割子) です。の仕分けは、0 にラウンドされます。
コンストラクタ
プロパティ
演算機能
Datatype.Vector3int16 を生成するが、そのコンポーネントはオペレータの個々のコンポーネントの合計です。サイン付きの 16 ビットの整数に関連する制限に注意してください。説明は以前に説明された 16 ビットの整数に関連しています。
Datatype.Vector3int16 を生成するが、そのコンポーネントはオペレータのそれぞれのコンポーネントの差です。サイン付きの 16 ビット整数に関連する制限に注意してください。説明は以前に説明された 16 ビット整数に関連しています。
Datatype.Vector3int16 を生成するが、そのコンポーネントはオペレーターのそれぞれのコンポーネントの製品です。サイン付きの 16 ビット整数に関連する制限については、以前に説明されているように注意してください。
Datatype.Vector3int16 を生成するが、そのコンポーネントはオペレーンドの個々のコンポーネントの quotient です。結果はラウンドダウンされます。サイン付きの 16 ビット整数に関連する制限に注意してください。説明は以前に説明された 16 ビット整数に関連しています。
このコンポーネントは、それぞれ Vector3int16 コンポーネントの子であり、それぞれ Vector3int16 コンポーネントの子である。このオペレーションは、Datatype.Vector3int16 コンポーネントの子であることに注意してください。これは、2>Datatype.Vector3int162>
Produces a Vector3int16 whose components are the quotient of the respective Vector3int16 components and the number (divisor). The results of the division are rounded toward zero. Be mindful of the limits associates with signed 16-bit integers, described earlier.