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.Vector4— doppia precisione, campix,y,z,w(minuscolo). Questo è il tipo usato perMesh.ControlPointse le proprietà di colore del materiale.Aspose.ThreeD.Vector4— float a precisione singola, campiX,Y,Z,W(maiuscolo). Usato internamente. Aggiungere questo tipo aControlPointscauserà un errore di compilazione.
Methods using Aspose.ThreeD.Utilities; quando si lavora con punti di controllo della geometria o dati del materiale.
Metodi
| Name | Type | Access | Description |
|---|---|---|---|
Length | double | Read | Gets the length. |
| Signature | Description |
|---|---|
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 |