Packageorg.flintparticles.threeD.zones
Classpublic class MultiZone
InheritanceMultiZone Inheritance Object
Implements Zone3D

The MutiZone zone defines a zone that combines other zones into one larger zone.



Public Methods
 MethodDefined By
  
The constructor defines a MultiZone zone.
MultiZone
  
addZone(zone:Zone3D):void
The addZone method is used to add a zone into this MultiZone object.
MultiZone
  
contains(p:Vector3D):Boolean
The contains method determines whether a point is inside the zone.
MultiZone
  
getLocation():Vector3D
The getLocation method returns a random point inside the zone.
MultiZone
  
getVolume():Number
The getArea method returns the size of the zone.
MultiZone
  
removeZone(zone:Zone3D):void
The removeZone method is used to remove a zone from this MultiZone object.
MultiZone
Constructor Detail
MultiZone()Constructor
public function MultiZone()

The constructor defines a MultiZone zone.

Method Detail
addZone()method
public function addZone(zone:Zone3D):void

The addZone method is used to add a zone into this MultiZone object.

Parameters

zone:Zone3D — The zone you want to add.

contains()method 
public function contains(p:Vector3D):Boolean

The contains method determines whether a point is inside the zone. This method is used by the initializers and actions that use the zone. Usually, it need not be called directly by the user.

Parameters

p:Vector3D — The x coordinate of the location to test for.

Returns
Boolean — true if point is inside the zone, false if it is outside.
getLocation()method 
public function getLocation():Vector3D

The getLocation method returns a random point inside the zone. This method is used by the initializers and actions that use the zone. Usually, it need not be called directly by the user.

Returns
Vector3D — a random point inside the zone.
getVolume()method 
public function getVolume():Number

The getArea method returns the size of the zone. This method is used by the MultiZone class. Usually, it need not be called directly by the user.

Returns
Number — The volume of all the zones combined.
removeZone()method 
public function removeZone(zone:Zone3D):void

The removeZone method is used to remove a zone from this MultiZone object.

Parameters

zone:Zone3D — The zone you want to remove.