Home Reference Source
import LineZone from 'three-nebula/src/zone/LineZone.js'
public class | source

LineZone

Extends:

Zone → LineZone

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
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
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

_dead(particle: Particle)

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#constructor

Params:

NameTypeAttributeDescription
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 random: * source

Override:

Zone#random

public supportsCrossing: boolean source

Override:

Zone#supportsCrossing

public x1: * source

public x2: * source

public y1: * source

public y2: * source

public z1: * source

public z2: * source

Public Methods

public getPosition(): * source

Override:

Zone#getPosition

Return:

*

public isLineZone(): boolean source

Returns true to indicate this is a LineZone.

Override:

Zone#isLineZone

Return:

boolean