| Package | org.flintparticles.threeD.zones |
| Class | public class LineZone |
| Inheritance | LineZone Object |
| Implements | Zone3D |
| Property | Defined By | ||
|---|---|---|---|
| end : Vector3D
The point at the other end of the line. | LineZone | ||
| start : Vector3D
The point at one end of the line. | LineZone | ||
| Method | Defined 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 | ||
| end | property |
end:Vector3DThe point at the other end of the line.
public function get end():Vector3D public function set end(value:Vector3D):void| start | property |
start:Vector3DThe point at one end of the line.
public function get start():Vector3D public function set start(value:Vector3D):void| LineZone | () | Constructor |
public function LineZone(start:Vector3D = null, end:Vector3D = null)The constructor creates a LineZone 3D zone.
Parametersstart:Vector3D (default = null) — The point at one end of the line.
| |
end:Vector3D (default = null) — The point at the other end of the line.
|
| 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 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 length of the line.
|