Constructor Summary
Public Constructor | ||
public |
constructor(centerX: number, centerY: number, centerZ: number, radius: number): * |
Method Summary
Public Methods | ||
public |
Returns true to indicate this is a SphereZone. |
Private Methods | ||
private |
_cross(): * Warns that this zone does not support the _cross method. |
|
private |
Sets the particle to dead if the particle collides with the sphere. |
Inherited Summary
From class Zone | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
type: * |
|
public |
vector: * |
|
public |
crossing(particle: *): * |
|
public |
getPosition(): * |
|
public |
Determines if this zone is a BoxZone. |
|
public |
Determines if this zone is a LineZone. |
|
public |
Determines if this zone is a MeshZone. |
|
public |
Determines if this zone is a PointZone. |
|
public |
Determines if this zone is a ScreenZone. |
|
public |
Determines if this zone is a SphereZone. |
|
private abstract |
_bound(particle: *) |
|
private abstract |
_cross(particle: *) |
|
private abstract |
Sets the particle's dead property to true if required. |
Public Constructors
Public Members
public radius: * source
public the: * source
public x: * source
public y: * source
public z: * source
Public Methods
public isSphereZone(): boolean source
Returns true to indicate this is a SphereZone.
Override:
Zone#isSphereZonePrivate Methods
private _cross(): * source
Warns that this zone does not support the _cross method.
Override:
Zone#_crossReturn:
* | void |
private _dead(particle: object): * source
Sets the particle to dead if the particle collides with the sphere.
Override:
Zone#_deadParams:
Name | Type | Attribute | Description |
particle | object |
Return:
* | void |