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

MethodsMethodsMethods
xdoubleX コンポーネント
ydoubleY コンポーネント
zdoubleZ コンポーネント
wdoubleW コンポーネント(同次座標;使用 1.0 標準位置の場合)

関連項目

 日本語