BoundingBox
Vue de l’ensemble
‘BoundingBox’ est une classe dans Aspose.3D FOSS pour Typescript.
Cette classe fournit 8 méthodes pour travailler avec les objets BoundingBox dans des programmes de type. Les méthodologies disponibles comprennent: constructor, contains , ‘infinite’, merge et null ; overlapsWith; scale : toString. Tous les membres publics sont accessibles à n’importe quelle application TypeScript après avoir installé l’Aspose.3D FOSS pour le package TypeCrypt. Propriétés : center., extent.
Description
‘BoundingBox’ est une classe dans la bibliothèque Aspose.3D FOSS pour TypeScript qui expose 7 méthodes et 29 propriétés pour l’utilisation programmatique.
Les fonctionnalités de base comprennent : : nombre; : nombre' ;. ces opérations permettent aux développeurs d’intégrer directement la fonction de boîte-barre dans les applications TypeScript.
La classe fournit également la propriété x (ghett le x), la «y » (gett l’y), et la »z » propriétés (gets le z).
La classe propose 4 surcharges constructeurs, permettant une initialisation flexible en fonction du contexte de l’appel.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
x | : number | Read | Gets the x. |
y | : number | Read | Gets the y. |
z | : number | Read | Gets the z. |
x | : number | Read | Gets the x. |
y | : number | Read | Gets the y. |
z | : number | Read | Gets the z. |
x | : number | Read | Gets the x. |
y | : number | Read | Gets the y. |
z | : number | Read | Gets the z. |
x | : number | Read | Gets the x. |
y | : number | Read | Gets the y. |
z | : number | Read | Gets the z. |
minimum | { x: number; y: number; z: number } | Read | Gets the minimum. |
x | : number | Read | Gets the x. |
y | : number | Read | Gets the y. |
z | : number | Read | Gets the z. |
maximum | { x: number; y: number; z: number } | Read | Gets the maximum. |
x | : number | Read | Gets the x. |
y | : number | Read | Gets the y. |
z | : number | Read | Gets the z. |
center | { x: number; y: number; z: number } | Read | Gets the center. |
x | : number | Read | Gets the x. |
y | : number | Read | Gets the y. |
z | : number | Read | Gets the z. |
size | { x: number; y: number; z: number } | Read | Gets the size. |
x | : number | Read | Gets the x. |
y | : number | Read | Gets the y. |
z | : number | Read | Gets the z. |
extent | BoundingBoxExtent | Read | Gets the extent. |
méthodes
| Signature | Description |
|---|---|
constructor() | Creates an empty (null) bounding box |
constructor(minimum: { x: number; y: number; z: number }, maximum: { x: number; y: number; z: number }) | Creates a bounding box with the specified minimum and maximum corner points |
constructor(minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number) | Creates a bounding box from explicit minimum and maximum coordinate components |
constructor() | Creates a default bounding box |
null() → BoundingBox | Returns a null (empty) bounding box |
infinite() → BoundingBox | Returns an infinite bounding box that contains all points |
merge() | Merges another bounding box or point into this bounding box |
contains(arg: any) → boolean | Returns true if this bounding box contains the given point or box |
overlapsWith(box: BoundingBox) → boolean | Returns true if this bounding box overlaps with the given bounding box |
scale() → number | Returns the scale factor of this bounding box |
toString() → string | Returns a string representation of this bounding box |
Voir aussi
- Aspose.3D - référence API d’entreprise