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
| Name | Type | Access | Description |
|---|---|---|---|
x | number | Read/Write | Gets the x. |
y | number | Read/Write | Gets the y. |
z | number | Read/Write | Gets the z. |
w | number | Read/Write | Gets the w. |
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) | 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) → number | Returns 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() → string | Calls toString on this FVector4 instance. |
equals(other: FVector4) → boolean | Returns true if all components match the other FVector4 |