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 Vector3 structs exist in this library:

  • Aspose.ThreeD.Utilities.Vector3double-precision, fields x, y, z (lowercase). Used for geometry, material colors, and most public API surfaces.
  • Aspose.ThreeD.Vector3single-precision float, fields X, Y, Z (uppercase). Used internally by the rendering layer. Not the type expected by Mesh.ControlPoints or material properties.

Always using Aspose.ThreeD.Utilities; when working with geometry or materials.

Fields

NameTypeDescription
xdoubleX component
ydoubleY component
zdoubleZ component

See Also