FVector4

Overview

FVector4 is a class in Aspose.3D FOSS for Typescript.

FVector4.constructor creates a zero‑initialized 4‑D vector.

Properties

NameTypeAccessDescription
xnumberRead/WriteStores the vector’s X component
ynumberRead/Write
znumberRead/Write
wnumberRead/Write

Methods

SignatureDescription
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)numberReturns 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)booleanReturns true if all components match the other FVector4

See Also