Vector4

Metodi

Aspose.ThreeD.Utilities.Vector4 è un doppia precisione 4-component vector. It is the type used by Mesh.ControlPoints (IList<Aspose.ThreeD.Utilities.Vector4>), PbrMaterial.BaseColor, LambertMaterial.Diffuse, e altre API di geometria e materiale. Il w il componente è tipicamente 1.0 per posizioni cartesiane standard.

using Aspose.ThreeD.Utilities;

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

Disambiguazione del namespace: Due separati Vector4 struct sono presenti in questa libreria:

  • Aspose.ThreeD.Utilities.Vector4doppia precisione, campi x, y, z, w (minuscolo). Questo è il tipo usato per Mesh.ControlPoints e le proprietà di colore del materiale.
  • Aspose.ThreeD.Vector4float a precisione singola, campi X, Y, Z, W (maiuscolo). Usato internamente. Aggiungere questo tipo a ControlPoints causerà un errore di compilazione.

Methods using Aspose.ThreeD.Utilities; quando si lavora con punti di controllo della geometria o dati del materiale.

Metodi

NameTypeAccessDescription
LengthdoubleReadGets the length.
SignatureDescription
Vector4(vec: Vector3, w: double)Creates a new 4‑dimensional vector with the given x, y, z, and w components
Vector4(vec: Vector3)
Vector4(vec: FVector4)
Vector4(x: double, y: double, z: double)
Vector4(x: double, y: double, z: double, w: double)
Set(newX: double, newY: double, newZ: double)Updates the X, Y, and Z components of the vector
Set(newX: double, newY: double, newZ: double, newW: double)
Equals(obj: object)Determines whether another Vector4 has the same component values
GetHashCode()
ToString()
CompareTo(other: Vector4)Compares this vector with another Vector4 for ordering

Vedi anche

 Italiano