Vector 4

Vue de l’ensemble

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

Vector4.constructor crée un nouveau Vektor4 avec des composants par défaut (0,0,0).

Cette classe fournit 6 méthodes pour travailler avec des objets Vector4 dans les programmes de type. Les méthodologies disponibles comprennent: constructor, equals , ‘getItem ; 'set; ’ setItomet 'toString'. Tous les membres publics sont accessibles à n'importe quelle application de TypeScript après avoir installé l'Aspose.3D FOSS pour le package de typescrit. Propriétés :w’, x,, y., z.

Description

‘Vector4’ est une classe dans la bibliothèque Aspose.3D FOSS pour TypeScript qui expose 5 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 vector4 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 Vector4 from a mixed first argument (FVector2, FVector3, or number) and y, z, w numbers
constructor(x: number, y: number, z: number, w: number)Creates a Vector4 with the specified x, y, z, and w double components
constructor(vec3: FVector3, w: number)Creates a Vector4 from an FVector3 and a double w component
constructor(vec: FVector2, w: number)Creates a Vector4 from an FVector2 and a double w component
`constructor(x: FVector2FVector3
set(newX: number, newY: number, newZ: number, newW: number)Assigns new values to x, y, z, and w components
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: Vector4)booleanReturns true if all components match the other Vector4

Voir aussi

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