HeadingPitchRange - Cesium Documentation

# HeadingPitchRange

#### new HeadingPitchRange(heading, pitch, range)

  Defines a heading angle, pitch angle an range in a local frame. Heading is the rotation from the local north direction where a positive angle is increasing eastward. Pitch is the rotation from the local xy-plane. Positive pitch angles are above the plane. Negative pitch angles are below the plane. Range is the distance from the center of the frame.

  Name | Type | Default | Description
  --- | --- | --- | ---
  `heading` | Number | `0.0` | optional The heading angle in radians.
  `pitch` | Number | `0.0` | optional The pitch angle in radians.
  `range` | Number | `0.0` | optional The distance from the center in meters.

  Source: Scene/HeadingPitchRange.js, line 22

### Members

#### heading :Number

  Heading is the rotation from the local north direction where a positive angle is increasing eastward.
  Source: Scene/HeadingPitchRange.js, line 27

#### pitch :Number

  Pitch is the rotation from the local xy-plane. Positive pitch angles are above the plane. Negative pitch angles are below the plane.
  Source: Scene/HeadingPitchRange.js, line 34

#### range :Number

  Range is the distance from the center of the local frame.
  Source: Scene/HeadingPitchRange.js, line 40

### Methods

#### staticHeadingPitchRange.clone(hpr, result) → HeadingPitchRange

  Duplicates a HeadingPitchRange instance.

  Name | Type | Description
  --- | --- | ---
  `hpr` | HeadingPitchRange | The HeadingPitchRange to duplicate.
  `result` | HeadingPitchRange | optional The object onto which to store the result.

  ##### Returns:

  The modified result parameter or a new HeadingPitchRange instance if one was not provided. (Returns undefined if hpr is undefined)
  Source: Scene/HeadingPitchRange.js, line 50