| Package | org.flintparticles.threeD.zones |
| Class | public class MultiZone |
| Inheritance | MultiZone Object |
| Implements | Zone3D |
| Method | Defined By | ||
|---|---|---|---|
The constructor defines a MultiZone zone. | MultiZone | ||
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 | ||
| MultiZone | () | Constructor |
public function MultiZone()The constructor defines a MultiZone zone.
| addZone | () | method |
public function addZone(zone:Zone3D):voidThe 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):BooleanThe 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.
|
Boolean — true if point is inside the zone, false if it is outside.
|
| getLocation | () | method |
public function getLocation():Vector3DThe 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.
ReturnsVector3D — a random point inside the zone.
|
| getVolume | () | method |
public function getVolume():NumberThe 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.
ReturnsNumber — The volume of all the zones combined.
|
| removeZone | () | method |
public function removeZone(zone:Zone3D):voidThe removeZone method is used to remove a zone from this MultiZone object.
Parameters
zone:Zone3D — The zone you want to remove.
|