| Package | org.flintparticles.threeD.zones |
| Class | public class PointZone |
| Inheritance | PointZone Object |
| Implements | Zone3D |
| Property | Defined By | ||
|---|---|---|---|
| point : Vector3D
The point that is the zone. | PointZone | ||
| Method | Defined By | ||
|---|---|---|---|
PointZone(point:Vector3D = null)
The constructor defines a PointZone zone. | PointZone | ||
contains(p:Vector3D):Boolean
The contains method determines whether a point is inside the zone. | PointZone | ||
getLocation():Vector3D
The getLocation method returns a random point inside the zone. | PointZone | ||
getVolume():Number
The getArea method returns the size of the zone. | PointZone | ||
| point | property |
point:Vector3DThe point that is the zone.
public function get point():Vector3D public function set point(value:Vector3D):void| PointZone | () | Constructor |
public function PointZone(point:Vector3D = null)The constructor defines a PointZone zone.
Parameterspoint:Vector3D (default = null) — The point that is the zone.
|
| 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 — A value of 1 because the zone contains a single point.
|