| Package | org.flintparticles.threeD.zones |
| Class | public class ParallelogramZone |
| Inheritance | ParallelogramZone Object |
| Implements | Zone3D |
| Property | Defined By | ||
|---|---|---|---|
| corner : Vector3D
A corner of the zone. | ParallelogramZone | ||
| side1 : Vector3D
One side of the zone from the corner. | ParallelogramZone | ||
| side2 : Vector3D
The other side of the zone from the corner. | ParallelogramZone | ||
| Method | Defined By | ||
|---|---|---|---|
ParallelogramZone(corner:Vector3D = null, side1:Vector3D = null, side2:Vector3D = null)
The constructor creates a PrallelogramZone zone. | ParallelogramZone | ||
contains(p:Vector3D):Boolean
The contains method determines whether a point is inside the zone. | ParallelogramZone | ||
getLocation():Vector3D
The getLocation method returns a random point inside the zone. | ParallelogramZone | ||
getVolume():Number
The getVolume method returns the size of the zone. | ParallelogramZone | ||
| corner | property |
corner:Vector3DA corner of the zone.
public function get corner():Vector3D public function set corner(value:Vector3D):void| side1 | property |
side1:Vector3DOne side of the zone from the corner. The length of the vector indicates how long the side is.
public function get side1():Vector3D public function set side1(value:Vector3D):void| side2 | property |
side2:Vector3DThe other side of the zone from the corner. The length of the vector indicates how long the side is.
public function get side2():Vector3D public function set side2(value:Vector3D):void| ParallelogramZone | () | Constructor |
public function ParallelogramZone(corner:Vector3D = null, side1:Vector3D = null, side2:Vector3D = null)The constructor creates a PrallelogramZone zone.
Parameterscorner:Vector3D (default = null) — A corner of the zone.
| |
side1:Vector3D (default = null) — One side of the zone from the corner. The length of the vector
indicates how long the side is.
| |
side2:Vector3D (default = null) — The other side of the zone from the corner. The length of the
vector indicates how long the side is.
|
| 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 getVolume 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 random point inside the zone.
|