| Package | org.flintparticles.threeD.zones |
| Class | public class CylinderZone |
| Inheritance | CylinderZone Object |
| Implements | Zone3D |
| Property | Defined By | ||
|---|---|---|---|
| axis : Vector3D
The central axis of the cylinder, from the center point towards the other end. | CylinderZone | ||
| center : Vector3D
The point at the center of one end of the cylinder. | CylinderZone | ||
| innerRadius : Number
The inner radius of the cylinder. | CylinderZone | ||
| length : Number
The length of the cylinder. | CylinderZone | ||
| outerRadius : Number
The outer radius of the cylinder. | CylinderZone | ||
| Method | Defined By | ||
|---|---|---|---|
CylinderZone(center:Vector3D = null, axis:Vector3D = null, length:Number = 0, outerRadius:Number = 0, innerRadius:Number = 0)
The constructor creates a CylinderZone 3D zone. | CylinderZone | ||
contains(p:Vector3D):Boolean
The contains method determines whether a point is inside the zone. | CylinderZone | ||
getLocation():Vector3D
The getLocation method returns a random point inside the zone. | CylinderZone | ||
getVolume():Number
The getArea method returns the size of the zone. | CylinderZone | ||
| axis | property |
axis:Vector3DThe central axis of the cylinder, from the center point towards the other end.
public function get axis():Vector3D public function set axis(value:Vector3D):void| center | property |
center:Vector3DThe point at the center of one end of the cylinder.
public function get center():Vector3D public function set center(value:Vector3D):void| innerRadius | property |
innerRadius:NumberThe inner radius of the cylinder. This defines the hole in the center of the cylinder that runs the length of the cylinder. If this is set to zero, there is no hole.
public function get innerRadius():Number public function set innerRadius(value:Number):void| length | property |
length:NumberThe length of the cylinder.
public function get length():Number public function set length(value:Number):void| outerRadius | property |
outerRadius:NumberThe outer radius of the cylinder.
public function get outerRadius():Number public function set outerRadius(value:Number):void| CylinderZone | () | Constructor |
public function CylinderZone(center:Vector3D = null, axis:Vector3D = null, length:Number = 0, outerRadius:Number = 0, innerRadius:Number = 0)The constructor creates a CylinderZone 3D zone.
Parameterscenter:Vector3D (default = null) — The point at the center of one end of the cylinder.
| |
axis:Vector3D (default = null) — A vector along the central axis of the cylinder from
the center and towards the other end of the cylinder.
| |
length:Number (default = 0) — The length of the cylinder.
| |
outerRadius:Number (default = 0) — The outer radius of the cylinder.
| |
innerRadius:Number (default = 0) — The inner radius of the cylinder. This defines the
hole in the center of the cylinder that runs the length of the cylinder.
If this is 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 cylinder, 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 cylinder.
|
| 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 volume of the cylinder
|