FVector4
Overview
FVector4 is a class in Aspose.3d for Typescript.
Inherits from: FVector4.
FVector4 extends vector support to four components with getters/setters for x, y, z, w and indexed item access.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
x | number | Read | Holds the vector’s X component |
y | number | Read | |
z | number | Read | |
w | number | Read |
Methods
| Signature | Description |
|---|---|
constructor() | Creates a vector using a number or FVector2/FVector3 as first argument and remaining components |
constructor(x: number, y: number, z: number, w: number) | |
constructor(vec3: FVector3, w: number) | |
constructor(vec2: FVector2, z: number, w: number) | |
constructor(x: number | FVector2 | FVector3, y: number, z: number, w: number) | |
getItem(key: number) → number | Returns the component value at the given index (0‑3) |
setItem(key: number, value: number) | Assigns a value to the component at the given index (0‑3) |
toString() → string | |
equals(other: FVector4) → boolean | Returns true if all components match the other FVector4 |