FVector4
Overview
FVector4 is a class in Aspose.3D FOSS for Typescript.
FVector4.constructor creates a zero‑initialized 4‑D vector.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
x | number | Read/Write | Stores the vector’s X component |
y | number | Read/Write | |
z | number | Read/Write | |
w | number | Read/Write |
Methods
| Signature | Description |
|---|---|
constructor() | Creates a vector using a numeric or vector 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‑x,1‑y,2‑z,3‑w) |
setItem(key: number, value: number) | Assigns the given value to the component at the specified index |
toString() → string | |
equals(other: FVector4) → boolean | Returns true if all components match the other FVector4 |