# LatLngAltitude

    struct LatLngAltitude

    extension LatLngAltitude : AdditiveArithmetic, Animatable, Copyable, Equatable, Escapable, Hashable, VectorArithmetic

- `


  ### [\*(_:_:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV1moiyA2C_SdtFZ)


  `

  #### Declaration

  Swift

      static func * (lhs: LatLngAltitude, rhs: Double) -> LatLngAltitude

- `


  ### [\*=(_:_:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV2meoiyyACz_SdtFZ)


  `

  #### Declaration

  Swift

      static func *= (lhs: inout LatLngAltitude, rhs: Double)

- `


  ### [+(_:_:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV1poiyA2C_ACtFZ)


  ` Adds two values and produces their sum.

  The addition operator (`+`) calculates the sum of its two arguments. For
  example:

      1 + 2                   // 3
      -10 + 15                // 5
      -15 + -5                // -20
      21.5 + 3.25             // 24.75

  You cannot use `+` with arguments of different types. To add values of
  different types, convert one of the values to the other value's type.

      let x: Int8 = 21
      let y: Int = 1000000
      Int(x) + y              // 1000021

  #### Declaration

  Swift

      static func + (lhs: LatLngAltitude, rhs: LatLngAltitude) -> LatLngAltitude

  #### Parameters

  |---|---|
  | ` lhs ` | The first value to add. |
  | ` rhs ` | The second value to add. |

- `


  ### [+=(_:_:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV2peoiyyACz_ACtFZ)


  ` Adds two values and stores the result in the left-hand-side variable.

  #### Declaration

  Swift

      static func += (lhs: inout LatLngAltitude, rhs: LatLngAltitude)

  #### Parameters

  |---|---|
  | ` lhs ` | The first value to add. |
  | ` rhs ` | The second value to add. |

- `


  ### [-(_:_:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV1soiyA2C_ACtFZ)


  ` Subtracts one value from another and produces their difference.

  The subtraction operator (`-`) calculates the difference of its two
  arguments. For example:

      8 - 3                   // 5
      -10 - 5                 // -15
      100 - -5                // 105
      10.5 - 100.0            // -89.5

  You cannot use `-` with arguments of different types. To subtract values
  of different types, convert one of the values to the other value's type.

      let x: UInt8 = 21
      let y: UInt = 1000000
      y - UInt(x)             // 999979

  #### Declaration

  Swift

      static func - (lhs: LatLngAltitude, rhs: LatLngAltitude) -> LatLngAltitude

  #### Parameters

  |---|---|
  | ` lhs ` | A numeric value. |
  | ` rhs ` | The value to subtract from `lhs`. |

- `


  ### [-=(_:_:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV2seoiyyACz_ACtFZ)


  ` Subtracts the second value from the first and stores the difference in the
  left-hand-side variable.

  #### Declaration

  Swift

      static func -= (lhs: inout LatLngAltitude, rhs: LatLngAltitude)

  #### Parameters

  |---|---|
  | ` lhs ` | A numeric value. |
  | ` rhs ` | The value to subtract from `lhs`. |

- `


  ### [/(_:_:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV1doiyA2C_SdtFZ)


  `

  #### Declaration

  Swift

      static func / (lhs: LatLngAltitude, rhs: Double) -> LatLngAltitude

- `


  ### [==(_:_:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV2eeoiySbAC_ACtFZ)


  ` Returns a Boolean value indicating whether two values are equal.

  Equality is the inverse of inequality. For any values `a` and `b`,
  `a == b` implies that `a != b` is `false`.

  #### Declaration

  Swift

      static func == (a: LatLngAltitude, b: LatLngAltitude) -> Bool

- `


  ### [AnimatableData](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV14AnimatableDataa)


  ` The type defining the data to animate.

  #### Declaration

  Swift

      typealias AnimatableData = LatLngAltitude

- `


  ### [altitude](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV8altitudeSdvp)


  `

  #### Declaration

  Swift

      var altitude: Double

- `


  ### [animatableData](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV14animatableDataACvp)


  ` The data to animate.

  #### Declaration

  Swift

      var animatableData: LatLngAltitude { get set }

- `


  ### [hash(into:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV4hash4intoys6HasherVz_tF)


  ` Hashes the essential components of this value by feeding them into the
  given hasher.

  Implement this method to conform to the `Hashable` protocol. The
  components used for hashing must be the same as the components compared
  in your type's `==` operator implementation. Call `hasher.combine(_:)`
  with each of these components.
  Important

  In your implementation of `hash(into:)`,
  don't call `finalize()` on the `hasher` instance provided,
  or replace it with a different instance.
  Doing so may become a compile-time error in the future.

  #### Declaration

  Swift

      func hash(into hasher: inout Hasher)

- `


  ### [hashValue](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV9hashValueSivp)


  ` The hash value.

  Hash values are not guaranteed to be equal across different executions of
  your program. Do not save hash values to use during a future execution.
  Important
  `hashValue` is deprecated as a `Hashable` requirement. To conform to `Hashable`, implement the `https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude.html#/s:12GoogleMaps3D14LatLngAltitudeV4hash4intoys6HasherVz_tF` requirement instead. The compiler provides an implementation for `hashValue` for you.

  #### Declaration

  Swift

      var hashValue: Int { get }

- `


  ### [init(latitude:longitude:altitude:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV8latitude9longitude8altitudeACSd_S2dtcfc)


  `

  #### Declaration

  Swift

      init(latitude: Double, longitude: Double, altitude: Double = 0.0)

- `


  ### [latitude](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV8latitudeSdvp)


  `

  #### Declaration

  Swift

      var latitude: Double

- `


  ### [longitude](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV9longitudeSdvp)


  `

  #### Declaration

  Swift

      var longitude: Double

- `


  ### [magnitudeSquared](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV16magnitudeSquaredSdvp)


  ` Returns the dot-product of this vector arithmetic instance with itself.

  #### Declaration

  Swift

      var magnitudeSquared: Double { get }

- `


  ### [scale(by:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV5scale2byySd_tF)


  ` Multiplies each component of this value by the given value.

  #### Declaration

  Swift

      mutating func scale(by rhs: Double)

- `


  ### [zero](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude#/s:12GoogleMaps3D14LatLngAltitudeV4zeroACvpZ)


  ` The zero value.

  Zero is the identity element for addition. For any value,
  `x + .zero == x` and `.zero + x == x`.

  #### Declaration

  Swift

      static var zero: LatLngAltitude { get }