Vector3.Transform 方法
本文內容
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
轉換向量。
Transform(Vector3, Quaternion) |
依指定的四元數旋轉值轉換向量。 |
Transform(Vector3, Matrix4x4) |
依指定的 4x4 矩陣轉換向量。 |
- 來源:
- Vector3.cs
- 來源:
- Vector3.cs
- 來源:
- Vector3.cs
依指定的四元數旋轉值轉換向量。
public:
static System::Numerics::Vector3 Transform(System::Numerics::Vector3 value, System::Numerics::Quaternion rotation);
public static System.Numerics.Vector3 Transform(System.Numerics.Vector3 value, System.Numerics.Quaternion rotation);
static member Transform : System.Numerics.Vector3 * System.Numerics.Quaternion -> System.Numerics.Vector3
Public Shared Function Transform (value As Vector3, rotation As Quaternion) As Vector3
參數
- value
- Vector3
要旋轉的向量。
- rotation
- Quaternion
要套用的旋轉。
傳回
已轉換的向量。
適用於
.NET 9 及其他版本
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 |
UWP | 10.0 |
- 來源:
- Vector3.cs
- 來源:
- Vector3.cs
- 來源:
- Vector3.cs
依指定的 4x4 矩陣轉換向量。
public:
static System::Numerics::Vector3 Transform(System::Numerics::Vector3 position, System::Numerics::Matrix4x4 matrix);
public static System.Numerics.Vector3 Transform(System.Numerics.Vector3 position, System.Numerics.Matrix4x4 matrix);
static member Transform : System.Numerics.Vector3 * System.Numerics.Matrix4x4 -> System.Numerics.Vector3
Public Shared Function Transform (position As Vector3, matrix As Matrix4x4) As Vector3
參數
- position
- Vector3
要轉換的向量。
- matrix
- Matrix4x4
轉換矩陣。
傳回
已轉換的向量。
適用於
.NET 9 及其他版本
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 |
UWP | 10.0 |