| Package | org.flintparticles.threeD.zones |
| Class | public class DiscZone |
| Inheritance | DiscZone Object |
| Implements | Zone3D |
| Property | Defined By | ||
|---|---|---|---|
| center : Vector3D
The point at the center of the disc. | DiscZone | ||
| innerRadius : Number
The inner radius of the disc. | DiscZone | ||
| normal : Vector3D
The vector normal to the disc. | DiscZone | ||
| outerRadius : Number
The outer radius of the disc. | DiscZone | ||
| Method | Defined By | ||
|---|---|---|---|
DiscZone(center:Vector3D = null, normal:Vector3D = null, outerRadius:Number = 0, innerRadius:Number = 0)
The constructor creates a DiscZone 3D zone. | DiscZone | ||
contains(p:Vector3D):Boolean
The contains method determines whether a point is inside the zone. | DiscZone | ||
getLocation():Vector3D
The getLocation method returns a random point inside the zone. | DiscZone | ||
getVolume():Number
The getArea method returns the size of the zone. | DiscZone | ||
| center | property |
center:Vector3DThe point at the center of the disc.
public function get center():Vector3D public function set center(value:Vector3D):void| innerRadius | property |
innerRadius:NumberThe inner radius of the disc.
public function get innerRadius():Number public function set innerRadius(value:Number):void| normal | property |
normal:Vector3DThe vector normal to the disc. When setting the vector, the vector is normalized. So, when reading the vector this will be a normalized version of the vector that is set.
public function get normal():Vector3D public function set normal(value:Vector3D):void| outerRadius | property |
outerRadius:NumberThe outer radius of the disc.
public function get outerRadius():Number public function set outerRadius(value:Number):void| DiscZone | () | Constructor |
public function DiscZone(center:Vector3D = null, normal:Vector3D = null, outerRadius:Number = 0, innerRadius:Number = 0)The constructor creates a DiscZone 3D zone.
Parameterscenter:Vector3D (default = null) — The point at the center of the disc.
| |
normal:Vector3D (default = null) — A vector normal to the disc.
| |
outerRadius:Number (default = 0) — The outer radius of the disc.
| |
innerRadius:Number (default = 0) — The inner radius of the disc. This defines the hole
in the center of the disc. If set to zero, there is no hole.
|
| 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.
|
Boolean — true if the location 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 surface area of the disc.
|