Packageflare.core
Classpublic class Boundings3D
InheritanceBoundings3D Inheritance Object

The Boundings3D class has the information about Pivot3D-type object dimensions.

The values established in this class will not affect objects physically; they are just informative.

The values returned are represented in the local space of each object. To transform them to a global space use localToGlobal or localToGlobalVector of the Pivot3D objects.

Although values can be modified, this is not advisable as these properties are often used by the visibility and collision calculation system, for example. Preferably, create a copy using the clone system and modify that copy.



Public Properties
 PropertyDefined By
  center : Vector3D
Center of the object.
Boundings3D
  length : Vector3D
Lengths of the bounding box of the object.
Boundings3D
  max : Vector3D
Maximum corner of the bounding box of the object.
Boundings3D
  min : Vector3D
Minimum corner of the bounding box of the object.
Boundings3D
  radius : Number = 0
Radius of the object count from the center of the object (not from the object).
Boundings3D
Public Methods
 MethodDefined By
  
Creates a new Boundings3D object.
Boundings3D
  
Creates a copy of a Boundings3D object.
Boundings3D
  
reset():void
Resets the object properties to its default values.
Boundings3D
Property Detail
centerproperty
public var center:Vector3D

Center of the object. The center does not correspond to (0,0,0) of the object, but it is the calculated center of all the vertices.

lengthproperty 
public var length:Vector3D

Lengths of the bounding box of the object. (Maximum corner minus minimum corner).

maxproperty 
public var max:Vector3D

Maximum corner of the bounding box of the object.

minproperty 
public var min:Vector3D

Minimum corner of the bounding box of the object.

radiusproperty 
public var radius:Number = 0

Radius of the object count from the center of the object (not from the object).

Constructor Detail
Boundings3D()Constructor
public function Boundings3D()

Creates a new Boundings3D object.

Method Detail
clone()method
public function clone():Boundings3D

Creates a copy of a Boundings3D object.

Returns
Boundings3D — Returns a new Boundings3D object.
reset()method 
public function reset():void

Resets the object properties to its default values.