Packageorg.flintparticles.threeD.zones
Classpublic class PointZone
InheritancePointZone Inheritance Object
Implements Zone3D

The PointZone zone defines a zone that contains a single point.



Public Properties
 PropertyDefined By
  point : Vector3D
The point that is the zone.
PointZone
Public Methods
 MethodDefined 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
Property Detail
pointproperty
point:Vector3D

The point that is the zone.


Implementation
    public function get point():Vector3D
    public function set point(value:Vector3D):void
Constructor Detail
PointZone()Constructor
public function PointZone(point:Vector3D = null)

The constructor defines a PointZone zone.

Parameters
point:Vector3D (default = null) — The point that is the zone.
Method Detail
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 — A value of 1 because the zone contains a single point.