# GnssAntennaInfo.SphericalCorrections

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# SphericalCorrections

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/location/GnssAntennaInfo.SphericalCorrections "View this page in Java")  

```
class SphericalCorrections : Parcelable
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                 ||
| ↳ | [android.location.GnssAntennaInfo.SphericalCorrections](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#) |

Represents corrections on a spherical mapping. Corrections are added to measurements to obtain the corrected values. The corrections and associated (1-sigma) uncertainties are represented by respect 2D arrays. Each row (major indices) represents a fixed theta. The first row corresponds to a theta angle of 0 degrees. The last row corresponds to a theta angle of (360 - deltaTheta) degrees, where deltaTheta is the regular spacing between azimuthal angles, i.e., deltaTheta = 360 / (number of rows). The columns (minor indices) represent fixed zenith angles, beginning at 0 degrees and ending at 180 degrees. They are separated by deltaPhi, the regular spacing between zenith angles, i.e., deltaPhi = 180 / (number of columns - 1).

## Summary

| Inherited constants ||
|---|---|
| From class[Parcelable](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#) |----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int) <br /> Descriptor bit used with[describeContents()](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#describeContents()): indicates that the Parcelable object's flattened representation includes a file descriptor. <br />                                                                                                                                                                                                        | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int) <br /> Flag for use with[writeToParcel](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)): the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". Some implementations may want to release resources at this point. <br /> | ||

|                                                                                                                                                                                                                                                                                          Public constructors                                                                                                                                                                                                                                                                                          ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [SphericalCorrections](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#SphericalCorrections(kotlin.Array,%20kotlin.Array))`(`corrections:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[DoubleArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double-array/index.html)!>`, `correctionUncertainties:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[DoubleArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double-array/index.html)!>`)` <br /> |

|                                                                                                                                                                                                                                                                                Public methods                                                                                                                                                                                                                                                                                 ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                     | [describeContents](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#describeContents())`()` <br />                                                                                                                                                                                                                                        |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                             | [equals](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` <br />                                                                                                                                                            |
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[DoubleArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double-array/index.html)!\> | [getCorrectionUncertaintiesArray](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#getCorrectionUncertaintiesArray())`()` Array representing uncertainty on corrections on a spherical mapping.                                                                                                                                           |
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[DoubleArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double-array/index.html)!\> | [getCorrectionsArray](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#getCorrectionsArray())`()` Array representing corrections on a spherical mapping.                                                                                                                                                                                  |
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)                                                                                               | [getDeltaPhi](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#getDeltaPhi())`()` The fixed phi angle separation between successive columns.                                                                                                                                                                                              |
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)                                                                                               | [getDeltaTheta](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#getDeltaTheta())`()` The fixed theta angle separation between successive rows.                                                                                                                                                                                           |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                     | [hashCode](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#hashCode())`()` <br />                                                                                                                                                                                                                                                        |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)                                                                                               | [toString](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#toString())`()` <br />                                                                                                                                                                                                                                                        |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                   | [writeToParcel](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#)`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Flatten this object in to a Parcel. |

|                                                                                                                                                                                                           Properties                                                                                                                                                                                                           ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Parcelable.Creator](https://developer.android.com/reference/kotlin/android/os/Parcelable.Creator.html#)\<[GnssAntennaInfo.SphericalCorrections](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#)!\> | [CREATOR](https://developer.android.com/reference/kotlin/android/location/GnssAntennaInfo.SphericalCorrections#CREATOR:android.os.Parcelable.Creator) <br /> |

## Public constructors

### SphericalCorrections

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
SphericalCorrections(
    corrections: Array<DoubleArray!>, 
    correctionUncertainties: Array<DoubleArray!>)
```

|                                                                                                              Parameters                                                                                                               ||
|---------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `corrections`             | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[DoubleArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double-array/index.html)!\>:This value cannot be`null`. |
| `correctionUncertainties` | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[DoubleArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double-array/index.html)!\>:This value cannot be`null`. |

## Public methods

### describeContents

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun describeContents(): Int
```

|                                                                                                                                                                               Return                                                                                                                                                                               ||
|----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either`0`or[android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int) |

### equals

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun equals(other: Any?): Boolean
```

|                     Parameters                     ||
|-------|---------------------------------------------|
| `obj` | the reference object with which to compare. |

|                                                                           Return                                                                           ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true`if this object is the same as the obj argument;`false`otherwise. |

### getCorrectionUncertaintiesArray

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getCorrectionUncertaintiesArray(): Array<DoubleArray!>
```

Array representing uncertainty on corrections on a spherical mapping. Each row (major indices) represents a fixed theta. The first row corresponds to a theta angle of 0 degrees. The last row corresponds to a theta angle of (360 - deltaTheta) degrees, where deltaTheta is the regular spacing between azimuthal angles, i.e., deltaTheta = 360 / (number of rows). The columns (minor indices) represent fixed zenith angles, beginning at 0 degrees and ending at 180 degrees. They are separated by deltaPhi, the regular spacing between zenith angles, i.e., deltaPhi = 180 / (number of columns - 1).

|                                                                                                  Return                                                                                                   ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[DoubleArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double-array/index.html)!> | This value cannot be`null`. |

### getCorrectionsArray

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getCorrectionsArray(): Array<DoubleArray!>
```

Array representing corrections on a spherical mapping. Corrections are added to measurements to obtain the corrected values. Each row (major indices) represents a fixed theta. The first row corresponds to a theta angle of 0 degrees. The last row corresponds to a theta angle of (360 - deltaTheta) degrees, where deltaTheta is the regular spacing between azimuthal angles, i.e., deltaTheta = 360 / (number of rows). The columns (minor indices) represent fixed zenith angles, beginning at 0 degrees and ending at 180 degrees. They are separated by deltaPhi, the regular spacing between zenith angles, i.e., deltaPhi = 180 / (number of columns - 1).

|                                                                                                  Return                                                                                                   ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[DoubleArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double-array/index.html)!> | This value cannot be`null`. |

### getDeltaPhi

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getDeltaPhi(): Double
```

The fixed phi angle separation between successive columns.

|                                                            Return                                                            ||
|----------------------------------------------------------------------------------|--------------------------------------------|
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | Value is between 0.0f and 180.0f inclusive |

### getDeltaTheta

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getDeltaTheta(): Double
```

The fixed theta angle separation between successive rows.

|                                                            Return                                                            ||
|----------------------------------------------------------------------------------|--------------------------------------------|
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | Value is between 0.0f and 360.0f inclusive |

### hashCode

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun hashCode(): Int
```

|                                                     Return                                                     ||
|----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |

### toString

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun toString(): String
```

|                                                          Return                                                          ||
|----------------------------------------------------------------------------------|----------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |

### writeToParcel

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun writeToParcel(
    dest: Parcel, 
    flags: Int
): Unit
```

Flatten this object in to a Parcel.

|                                                                                                                                                                                                                                                                                     Parameters                                                                                                                                                                                                                                                                                     ||
|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `dest`  | [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#):This value cannot be`null`.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `flags` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Additional flags about how the object should be written. May be 0 or[PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int). Value is either`0`or a combination of[android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int), and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |

## Properties

### CREATOR

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CREATOR: Parcelable.Creator<GnssAntennaInfo.SphericalCorrections!>
```