Vector3 — Aspose.3D FOSS for .NET
Methods
Aspose.ThreeD.Utilities.Vector3 là một độ chính xác kép 3-component vector used throughout the library for geometry coordinates, positions, directions, and material values. Fields are lowercase: x, y, z.
using Aspose.ThreeD.Utilities;
var a = new Vector3(1.0, 0.0, 0.0);
var b = new Vector3(0.0, 1.0, 0.0);Phân biệt không gian tên: Hai riêng biệt Vector3 các struct tồn tại trong thư viện này:
Aspose.ThreeD.Utilities.Vector3— độ chính xác double, các trườngx,y,z(lowercase). Được sử dụng cho hình học, màu vật liệu và hầu hết các giao diện API công cộng.Aspose.ThreeD.Vector3— float đơn độ chính xác, các trườngX,Y,Z(uppercase). Được sử dụng nội bộ bởi lớp render. Không phải là kiểu màMesh.ControlPointshoặc các thuộc tính vật liệu.
Methods using Aspose.ThreeD.Utilities; khi làm việc với hình học hoặc vật liệu.
Methods
| Methods | Methods | Methods |
|---|---|---|
x | double | thành phần X |
y | double | thành phần Y |
z | double | thành phần Z |