FVector4

Overview

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

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

This class declares 9 methods for FVector4 objects in TypeScript programs. Available methods include: constructor, equals, getItem, setItem, toString. Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package. Properties: w, x, y, z.

Properties

NameTypeAccessDescription
xnumberRead/WriteGets the x.
ynumberRead/WriteGets the y.
znumberRead/WriteGets the z.
wnumberRead/WriteGets the w.

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)Calls constructor(x, y, z, w) on this FVector4 instance.
constructor(vec3: FVector3, w: number)Calls constructor(vec3, w) on this FVector4 instance.
constructor(vec2: FVector2, z: number, w: number)Calls constructor(vec2, z, w) on this FVector4 instance.
constructor(x: number | FVector2 | FVector3, y: number, z: number, w: number)Calls constructor(x, y, z, w) on this FVector4 instance.
getItem(key: number)numberReturns the component value at the given index (0‑x,1‑y,2‑z,3‑w)
setItem(key: number, value: number)Sets the item value.
toString()stringCalls toString on this FVector4 instance.
equals(other: FVector4)booleanReturns true if all components match the other FVector4

See Also

 English