Packageorg.flintparticles.threeD.zones
Classpublic class LineZone
InheritanceLineZone Inheritance Object
Implements Zone3D

The LineZone zone defines a zone that contains all the points on a line.



Public Properties
 PropertyDefined By
  end : Vector3D
The point at the other end of the line.
LineZone
  start : Vector3D
The point at one end of the line.
LineZone
Public Methods
 MethodDefined By
  
LineZone(start:Vector3D = null, end:Vector3D = null)
The constructor creates a LineZone 3D zone.
LineZone
  
contains(p:Vector3D):Boolean
The contains method determines whether a point is inside the zone.
LineZone
  
getLocation():Vector3D
The getLocation method returns a random point inside the zone.
LineZone
  
getVolume():Number
The getArea method returns the size of the zone.
LineZone
Property Detail
endproperty
end:Vector3D

The point at the other end of the line.


Implementation
    public function get end():Vector3D
    public function set end(value:Vector3D):void
startproperty 
start:Vector3D

The point at one end of the line.


Implementation
    public function get start():Vector3D
    public function set start(value:Vector3D):void
Constructor Detail
LineZone()Constructor
public function LineZone(start:Vector3D = null, end:Vector3D = null)

The constructor creates a LineZone 3D zone.

Parameters
start:Vector3D (default = null) — The point at one end of the line.
 
end:Vector3D (default = null) — The point at the other end of the line.
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 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 length of the line.