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

NameTypeAccessDescription
xnumberReadHolds the vector’s X component
ynumberRead
znumberRead
wnumberRead

Methods

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