Constructors
constructor
- new Particle(latlng: LatLng, r: number, lifetime: number): Particle
-
Parameters
-
latlng: LatLng
-
r: number
-
lifetime: number
Properties
Private
bornAt
bornAt: number
Private
dR
dR: number = 6
Private
dtheta
dtheta: number = 0
Readonly
id
id: number = ...
Private
latlng
latlng: LatLng
Private
lifetime
lifetime: number
Private
theta
theta: number = 0
Private
track
track: LatLng[] = []
Private
velocity
velocity: LatLngTuple
Private
Readonly
vertex
vertex: number[]
Methods
drop
- drop(): void
-
Returns void
getLatLngs
- getLatLngs(): number[][]
-
Returns number[][]
getTrack
- getTrack(): LatLng[]
-
Returns LatLng[]
isDead
- isDead(now: number): boolean
-
Returns boolean
move
- move(dt?: number): void
-
Returns void
translate
- translate(dlat: number, dlng: number): void
-
Parameters
-
dlat: number
-
dlng: number
Returns void