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 ของเรขาคณิตและวัสดุอื่น ๆ. The w คอมโพเนนต์โดยทั่วไป 1.0 สำหรับตำแหน่งคาร์ทีเซียนมาตรฐาน.

using Aspose.ThreeD.Utilities;

var point = new Vector4(1.0, 2.0, 3.0, 1.0);
mesh.ControlPoints.Add(point);

การแยกแยะเนมสเปซ: สองส่วนแยก Vector4 structs มีอยู่ในไลบรารีนี้:

  • Aspose.ThreeD.Utilities.Vector4ความแม่นยำคู่, fields x, y, z, w (ตัวพิมพ์เล็ก). นี่คือประเภทที่ใช้สำหรับ Mesh.ControlPoints และคุณสมบัติสีของวัสดุ.
  • Aspose.ThreeD.Vector4float ความแม่นยำเดี่ยว, fields X, Y, Z, W (uppercase). ใช้ภายในระบบ. การเพิ่มประเภทนี้ไปยัง ControlPoints จะทำให้เกิดข้อผิดพลาดในการคอมไพล์.

Methods using Aspose.ThreeD.Utilities; เมื่อทำงานกับจุดควบคุมเรขาคณิตหรือข้อมูลวัสดุ.

Methods

MethodsMethodsMethods
xdoubleส่วนประกอบ X
ydoubleส่วนประกอบ Y
zdoubleส่วนประกอบ Z
wdoubleส่วนประกอบ W (พิกัดเชิงเนื้อเดียว; ใช้ 1.0 สำหรับตำแหน่งมาตรฐาน)

ดูเพิ่มเติม

 ภาษาไทย