| Package | org.flintparticles.threeD.zones |
| Class | public class ConeZone |
| 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 | ||
|---|---|---|---|
|
The constructor creates a ConeZone 3D zone.
| ConeZone | ||
|
The contains method determines whether a point is inside the zone.
| ConeZone | ||
|
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:Number [read-write]The angle at the apex of the cone.
Implementation public function get angle():Number
public function set angle(value:Number):void
| apex | property |
apex:Vector3D [read-write]The point at the apex of the cone.
Implementation public function get apex():Vector3D
public function set apex(value:Vector3D):void
| axis | property |
axis:Vector3D [read-write]The central axis of the cone, from the apex towards the base.
Implementation public function get axis():Vector3D
public function set axis(value:Vector3D):void
| height | property |
height:Number [read-write]The height of the cone.
Implementation public function get height():Number
public function set height(value:Number):void
| truncatedHeight | property |
truncatedHeight:Number [read-write]The height at which the top of the cone is removed, leaving just the base from height to truncatedHeight.
Implementation public function get truncatedHeight():Number
public function set truncatedHeight(value:Number):void
| ConeZone | () | constructor |
public function ConeZone(apex:Vector3D, axis:Vector3D, angle:Number, height:Number, truncatedHeight:Number = 0)The constructor creates a ConeZone 3D zone.
Parametersapex:Vector3D — The point at the apex of the cone.
|
|
axis:Vector3D — A vector along the central axis of the cone from
the apex and towards the base of the cone.
|
|
angle:Number — The angle at the apex of the cone.
|
|
height:Number — 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.
Parametersp: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.
|