# Class: FlightInstance

## vcs.vcm.util.flight.FlightInstance

#### new vcs.vcm.util.flight.FlightInstance(options)

  Name | Type | Description
  --- | --- | ---
  `options` | vcs.vcm.util.flight.FlightInstance.Options |

### Members

#### changed{Cesium.Event}

  should be raised, when editing the flight to update {@see vcs.vcm.util.flight.FlightPlayer} & {@see vcs.vcm.util.flight.FlightVisualizer}

#### interpolation{string}

  One of the interpolations {@see vcs.vcm.util.flight.flightInterpolations}

#### loop{boolean}

  Whether this flight represents a circular flight path or not

#### ready{Promise}

#### viewpoints{Array.<vcs.vcm.util.flight.Anchor>}

  The anchors of this flight

### Methods

#### assign(flightInstance)

  Name | Type | Description
  --- | --- | ---
  `flightInstance` | vcs.vcm.util.flight.FlightInstance | vcs.vcm.util.flight.FlightInstance.Options |

#### getConfigObject(){vcs.vcm.util.flight.FlightInstance.Options}

  returns an options object for this flight. anchors are shallow cloned (positions are references)

#### isValid(){boolean}

  checks if this flightInstance is valid

### Type Definitions

#### vcs.vcm.util.flight.FlightInstance.Meta{Object}

  ##### Properties:

  Name | Type | Argument | Default | Description
  --- | --- | --- | --- | ---
  `name` | string | undefined |  |  |
  `multiplier` | number | <optional> | 1 |
  `interpolation` | string | <optional> | vcs.vcm.util.flight.flightInterpolations.SPLINE |
  `loop` | boolean | <optional> | false |

#### vcs.vcm.util.flight.FlightInstance.Options{vcs.vcm.util.flight.FlightInstance.Meta}

  ##### Properties:

  Name | Type | Argument | Default | Description
  --- | --- | --- | --- | ---
  `viewpoints` | Array.<vcs.vcm.util.flight.Anchor> | <optional> | [] |
  `url` | string | undefined |  |  |