Skip to content

API / geotoolkit / animation / processors / ArrayProcessor / ArrayProcessor

Class: ArrayProcessor

processors.ArrayProcessor.ArrayProcessor

Can process array of number

Hierarchy

Table of contents

Constructors
  • [new ArrayProcessor()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.animation-1.processors.arrayprocessor.arrayprocessor.md#new arrayprocessor())
Methods

Contents

Constructors

new ArrayProcessor()

• new ArrayProcessor()

Inherited from

AbstractProcessor<Array<number&gt;&gt;.constructor

Methods

clone

▸ clone(v): number[]

Returns clone of passed object

Parameters

Name Type Description
vnumber[]object to clone

Returns

number[]

clone

Overrides

AbstractProcessor.clone


distance

▸ distance(v1, v2): number

Calculate distance between two objects

Parameters

Name Type Description
v1number[]first object
v2number[]second object

Returns

number

distance

Inherited from

AbstractProcessor.distance


getClassName

▸ getClassName(): string

Returns

string

Inherited from

AbstractProcessor.getClassName


process

▸ process(from, to, out, func): number[]

Method iterates over passed object, extracts numeric properties and call function with them

Parameters

Name Type Description
fromnumber[]initial state
tonumber[]target state
outnumber[]destination state
funcProcessAnimationCallbackinterpolate function

Returns

number[]

res destination state

Overrides

AbstractProcessor.process


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AbstractProcessor.getClassName


getInstance

▸ Static getInstance(): ArrayProcessor

Returns instance of the ArrayProcessor

Returns

ArrayProcessor