Vector4 — Aspose.3D FOSS for .NET
Methods
Aspose.ThreeD.Utilities.Vector4 は 倍精度 4-component vector. It is the type used by Mesh.ControlPoints (IList<Aspose.ThreeD.Utilities.Vector4>), PbrMaterial.BaseColor, LambertMaterial.Diffuse,、その他のジオメトリおよびマテリアル API。この w コンポーネントは通常 1.0 標準的なデカルト座標の位置向けです。.
using Aspose.ThreeD.Utilities;
var point = new Vector4(1.0, 2.0, 3.0, 1.0);
mesh.ControlPoints.Add(point);名前空間の曖昧性解消: 2つの別々の Vector4 このライブラリには構造体が存在します:
Aspose.ThreeD.Utilities.Vector4— 倍精度, フィールドx,y,z,w(小文字)。これは次のために使用される型ですMesh.ControlPointsおよびマテリアルのカラー属性です。.Aspose.ThreeD.Vector4— 単精度浮動小数点, フィールドX,Y,Z,W(大文字)。内部で使用されます。この型を追加するとControlPointsコンパイルエラーが発生します。.
Methods using Aspose.ThreeD.Utilities; ジオメトリ制御点やマテリアルデータを扱う場合。.
Methods
| Methods | Methods | Methods |
|---|---|---|
x | double | X コンポーネント |
y | double | Y コンポーネント |
z | double | Z コンポーネント |
w | double | W コンポーネント(同次座標;使用 1.0 標準位置の場合) |