Packageaway3d.tools.utils
Classpublic class Bounds

Helper Class to retrieve objects bounds Bounds

Public Properties
 PropertyDefined by
  depth : Number
[static][read-only]
Bounds
  height : Number
[static][read-only]
Bounds
  maxX : Number
[static][read-only]
Bounds
  maxY : Number
[static][read-only]
Bounds
  maxZ : Number
[static][read-only]
Bounds
  minX : Number
[static][read-only]
Bounds
  minY : Number
[static][read-only]
Bounds
  minZ : Number
[static][read-only]
Bounds
  width : Number
[static][read-only]
Bounds
Public Methods
 MethodDefined by
  
getMeshBounds(mesh:Mesh):void
[static] Calculate the bounds of a Mesh object
Bounds
  
[static] Calculate the bounds of an ObjectContainer3D object
Bounds
  
getVerticesVectorBounds(vertices:Vector):void
[static] Calculate the bounds from a vector of number representing the vertices.
Bounds
Property detail
depthproperty
depth:Number  [read-only]

Implementation
    public static function get depth():Number
heightproperty 
height:Number  [read-only]

Implementation
    public static function get height():Number
maxXproperty 
maxX:Number  [read-only]

Implementation
    public static function get maxX():Number
maxYproperty 
maxY:Number  [read-only]

Implementation
    public static function get maxY():Number
maxZproperty 
maxZ:Number  [read-only]

Implementation
    public static function get maxZ():Number
minXproperty 
minX:Number  [read-only]

Implementation
    public static function get minX():Number
minYproperty 
minY:Number  [read-only]

Implementation
    public static function get minY():Number
minZproperty 
minZ:Number  [read-only]

Implementation
    public static function get minZ():Number
widthproperty 
width:Number  [read-only]

Implementation
    public static function get width():Number
Method detail
getMeshBounds()method
public static function getMeshBounds(mesh:Mesh):void

Calculate the bounds of a Mesh object

Parameters
mesh:Mesh — Mesh. The Mesh to get the bounds from. Use the getters of this class to retreive the results
getObjectContainerBounds()method 
public static function getObjectContainerBounds(container:ObjectContainer3D):void

Calculate the bounds of an ObjectContainer3D object

Parameters
container:ObjectContainer3D — ObjectContainer3D. The ObjectContainer3D to get the bounds from. Use the getters of this class to retreive the results
getVerticesVectorBounds()method 
public static function getVerticesVectorBounds(vertices:Vector):void

Calculate the bounds from a vector of number representing the vertices.

Parameters
vertices:Vector — Vector.. The vertices to get the bounds from. Use the getters of this class to retreive the results
Wiki link
Click to go to the wiki page for 'away3d.tools.utils.Bounds'

Code examples

Comments