Vector3 — Aspose.3D FOSS for .NET
Overview
Aspose.ThreeD.Utilities.Vector3 is a double-precision 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);Namespace disambiguation: Two separate
Vector3structs exist in this library:
Aspose.ThreeD.Utilities.Vector3— double-precision, fieldsx,y,z(lowercase). Used for geometry, material colors, and most public API surfaces.Aspose.ThreeD.Vector3— single-precision float, fieldsX,Y,Z(uppercase). Used internally by the rendering layer. Not the type expected byMesh.ControlPointsor material properties.Always
using Aspose.ThreeD.Utilities;when working with geometry or materials.
Fields
| Name | Type | Description |
|---|---|---|
x | double | X component |
y | double | Y component |
z | double | Z component |