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

PointZone

Extends:

Zone → PointZone

Constructor Summary

Public Constructor
public

PointZone is a point zone

Member Summary

Public Members
public
public

x: *

public

y: *

public

z: *

Method Summary

Public Methods
public
public

Returns true to indicate this is a PointZone.

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(x: Number | Vector3D, y: Number, z: Number) source

PointZone is a point zone

Override:

Zone#constructor

Params:

NameTypeAttributeDescription
x Number | Vector3D

the center's x value or a Vector3D Object

y Number

the center's y value

z Number

the center's z value

Example:

var pointZone = new System.PointZone(0,30,10);
or
var pointZone = new System.PointZone(new System.Vector3D(0,30,10));

Public Members

public supportsCrossing: boolean source

Override:

Zone#supportsCrossing

public x: * source

public y: * source

public z: * source

Public Methods

public getPosition(): * source

Override:

Zone#getPosition

Return:

*

public isPointZone(): boolean source

Returns true to indicate this is a PointZone.

Override:

Zone#isPointZone

Return:

boolean