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— ความแม่นยำคู่, fieldsx,y,z,w(ตัวพิมพ์เล็ก). นี่คือประเภทที่ใช้สำหรับMesh.ControlPointsและคุณสมบัติสีของวัสดุ.Aspose.ThreeD.Vector4— float ความแม่นยำเดี่ยว, fieldsX,Y,Z,W(uppercase). ใช้ภายในระบบ. การเพิ่มประเภทนี้ไปยังControlPointsจะทำให้เกิดข้อผิดพลาดในการคอมไพล์.
Methods using Aspose.ThreeD.Utilities; เมื่อทำงานกับจุดควบคุมเรขาคณิตหรือข้อมูลวัสดุ.
Methods
| Methods | Methods | Methods |
|---|---|---|
x | double | ส่วนประกอบ X |
y | double | ส่วนประกอบ Y |
z | double | ส่วนประกอบ Z |
w | double | ส่วนประกอบ W (พิกัดเชิงเนื้อเดียว; ใช้ 1.0 สำหรับตำแหน่งมาตรฐาน) |