| Package | org.flintparticles.threeD.zones |
| Class | public class ConeZone |
| Inheritance | ConeZone Object |
| Implements | Zone3D |
| Property | Defined By | ||
|---|---|---|---|
| angle : Number
The angle at the apex of the cone. | ConeZone | ||
| apex : Vector3D
The point at the apex of the cone. | ConeZone | ||
| axis : Vector3D
The central axis of the cone, from the apex towards the base. | ConeZone | ||
| height : Number
The height of the cone. | ConeZone | ||
| truncatedHeight : Number
The height at which the top of the cone is removed, leaving
just the base from height to truncatedHeight. | ConeZone | ||
| Method | Defined By | ||
|---|---|---|---|
ConeZone(apex:Vector3D = null, axis:Vector3D = null, angle:Number = 0, height:Number = 0, truncatedHeight:Number = 0)
The constructor creates a ConeZone 3D zone. | ConeZone | ||
contains(p:Vector3D):Boolean
The contains method determines whether a point is inside the zone. | ConeZone | ||
getLocation():Vector3D
The getLocation method returns a random point inside the zone. | ConeZone | ||
getVolume():Number
The getArea method returns the size of the zone. | ConeZone | ||
| angle | property |
angle:NumberThe angle at the apex of the cone.
public function get angle():Number public function set angle(value:Number):void| apex | property |
apex:Vector3DThe point at the apex of the cone.
public function get apex():Vector3D public function set apex(value:Vector3D):void| axis | property |
axis:Vector3DThe central axis of the cone, from the apex towards the base.
public function get axis():Vector3D public function set axis(value:Vector3D):void| height | property |
height:NumberThe height of the cone.
public function get height():Number public function set height(value:Number):void| truncatedHeight | property |
truncatedHeight:NumberThe height at which the top of the cone is removed, leaving just the base from height to truncatedHeight.
public function get truncatedHeight():Number public function set truncatedHeight(value:Number):void| ConeZone | () | Constructor |
public function ConeZone(apex:Vector3D = null, axis:Vector3D = null, angle:Number = 0, height:Number = 0, truncatedHeight:Number = 0)The constructor creates a ConeZone 3D zone.
Parametersapex:Vector3D (default = null) — The point at the apex of the cone.
| |
axis:Vector3D (default = null) — A vector along the central axis of the cone from
the apex and towards the base of the cone.
| |
angle:Number (default = 0) — The angle at the apex of the cone.
| |
height:Number (default = 0) — The height of the cone.
| |
truncatedHeight:Number (default = 0) — The height at which the top of the cone is removed, leaving
just the base from height to truncatedHeight.
|
| 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 — a random point inside the zone.
|