FVector4

Vue de l’ensemble

‘FVector4’ est une classe dans Aspose.3D FOSS pour Typescript.

Le constructeur FVector4 crée un vecteur 4D initialisé à zéro.

Cette classe fournit 5 méthodes pour travailler avec des objets FVector4 dans les programmes de type. Les méthodologies disponibles comprennent: constructor, equals , ‘getItem;setItomettoString. Tous les membres publics sont accessibles à n'importe quelle application de TypeScript après l'installation du Aspose.3D FOSS pour le package de typScripts. Propriétés : w; x., y,, z` .

Description

‘FVector4’ est une classe dans la bibliothèque Aspose.3D FOSS pour TypeScript qui expose 4 méthodes et 4 propriétés pour l’utilisation programmée.

Les fonctionnalités de base comprennent : ’numéro’ ; ’ numéro’, ’ nombre’. Ces opérations permettent aux développeurs d’intégrer la fonctionnement fvector4 directement dans les applications TypeScript.

La classe propose 5 surcharges constructeurs, permettant une initialisation flexible en fonction du contexte de l’appel.

Propriétés

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

méthodes

SignatureDescription
constructor()Creates a vector using a numeric or vector first argument and remaining components
constructor(x: number, y: number, z: number, w: number)Creates an FVector4 with the specified x, y, z, and w float components
constructor(vec3: FVector3, w: number)Creates an FVector4 from an FVector3 and a float w component
constructor(vec2: FVector2, z: number, w: number)Creates an FVector4 from an FVector2 and float z and w components
`constructor(x: numberFVector2
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()stringReturns a string representation of this vector
equals(other: FVector4)booleanReturns true if all components match the other FVector4

Voir aussi

  • Aspose.3D - référence API d’entreprise
 Français