Vector4
Overview
Vector4 is a struct in Aspose.3D FOSS for .NET.
Inherits from: IComparable<Vector4>.
Vector4.Vector4 creates a vector from a Vector3 and a double w component.
This struct provides 11 methods for working with Vector4 objects in .NET programs.
Available methods include: CompareTo, Equals, GetHashCode, Set, ToString, Vector4.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: Length.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Length | double | Read | Gets the length. |
Methods
| 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) | Calls Vector4(vec) on this Vector4 instance. |
Vector4(vec: FVector4) | Calls Vector4(vec) on this Vector4 instance. |
Vector4(x: double, y: double, z: double) | Calls Vector4(x, y, z) on this Vector4 instance. |
Vector4(x: double, y: double, z: double, w: double) | Calls Vector4(x, y, z, w) on this Vector4 instance. |
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) | Calls Set(newX, newY, newZ, newW) on this Vector4 instance. |
Equals(obj: object) | Determines whether another Vector4 has the same component values |
GetHashCode() | Calls GetHashCode on this Vector4 instance. |
ToString() | Calls ToString on this Vector4 instance. |
CompareTo(other: Vector4) | Compares this vector with another Vector4 for ordering |