Helper Class to retrieve objects bounds Bounds

Static variables

staticread onlydepth:Float

staticread onlyheight:Float

staticread onlymaxX:Float

staticread onlymaxY:Float

staticread onlymaxZ:Float

staticread onlyminX:Float

staticread onlyminY:Float

staticread onlyminZ:Float

staticread onlywidth:Float

Static methods

@:value({ outCenter : null })staticgetCenter(?outCenter:Vector3D):Vector3D

Parameters:

outCenter

Vector3D. Optional Vector3D, if provided the same Vector3D is returned with the bounds center.

Returns:

the center of the bound

staticgetMeshBounds(mesh:Mesh):Void

Calculate the bounds of a Mesh object

Parameters:

mesh

Mesh. The Mesh to get the bounds from. Use the getters of this class to retrieve the results

@:value({ worldBased : true })staticgetObjectContainerBounds(container:ObjectContainer3D, worldBased:Bool = true):Void

Calculate the bounds of an ObjectContainer3D object

Parameters:

container

ObjectContainer3D. The ObjectContainer3D to get the bounds from. Use the getters of this class to retrieve the results

staticgetVerticesVectorBounds(vertices:Vector<Float>):Void

Calculate the bounds from a vector of number representing the vertices. <x,y,z,x,y,z.....>

Parameters:

vertices

Vector.<Number>. The vertices to get the bounds from. Use the getters of this class to retrieve the results

staticreset():Void