LineZone
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(x1: Number | Vector3D, y1: Number | Vector3D, z1: Number, x2: Number, y2: Number, z2: Number) LineZone is a 3d line zone |
Member Summary
Public Members | ||
public |
random: * |
|
public |
|
|
public |
x1: * |
|
public |
x2: * |
|
public |
y1: * |
|
public |
y2: * |
|
public |
z1: * |
|
public |
z2: * |
Method Summary
Public Methods | ||
public |
getPosition(): * |
|
public |
Returns true to indicate this is a LineZone. |
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 constructor(x1: Number | Vector3D, y1: Number | Vector3D, z1: Number, x2: Number, y2: Number, z2: Number) source
LineZone is a 3d line zone
Override:
Zone#constructorParams:
Name | Type | Attribute | Description |
x1 | Number | Vector3D | the line's start point of x value or a Vector3D Object |
|
y1 | Number | Vector3D | the line's start point of y value or a Vector3D Object |
|
z1 | Number | the line's start point of z value |
|
x2 | Number | the line's end point of x value |
|
y2 | Number | the line's end point of y value |
|
z2 | Number | the line's end point of z value |
Example:
var lineZone = new System.LineZone(0,0,0,100,100,0);
or
var lineZone = new System.LineZone(new System.Vector3D(0,0,0),new System.Vector3D(100,100,0));
Public Members
public x1: * source
public x2: * source
public y1: * source
public y2: * source
public z1: * source
public z2: * source
Public Methods
public isLineZone(): boolean source
Returns true to indicate this is a LineZone.