Back to Filament

Box

docs/android/dokka/filament-android/com.google.android.filament/-box/-box.md

1.75.01.6 KB
Original Source

//filament-android/com.google.android.filament/Box/Box

Box

[main]
constructor()

Default-initializes the 3D box to have a center and half-extent of (0,0,0).

[main]
constructor(centerX: Float, centerY: Float, centerZ: Float, halfExtentX: Float, halfExtentY: Float, halfExtentZ: Float)

Initializes the 3D box from its center and half-extent.

[main]
constructor(center: Array<Float>, halfExtent: Array<Float>)

Initializes the 3D box from its center and half-extent.

Parameters

main

centera float array with XYZ coordinates representing the center of the box
halfExtenta float array with XYZ coordinates representing half the size of the box in each dimension