Hole

class Hole : Parcelable


A hole in a polygon defined by a list of vertices.

Summary

Constants

const Parcelable.Creator<Hole!>!

Public constructors

Constructor for Hole with parameters for required fields.

Public functions

(Mutable)List<LatLngAltitude!>!

The vertices of the hole.

Unit

Sets the vertices of the hole.

Unit
writeToParcel(dest: Parcel!, flags: Int)

Extension functions

Unit

Validates that the given Hole is correct.

Inherited functions

From android.os.Parcelable
abstract Int

Constants

CREATOR

const val CREATORParcelable.Creator<Hole!>!

Public constructors

Hole

Hole(vertices: (Mutable)List<LatLngAltitude!>!)

Constructor for Hole with parameters for required fields.

Parameters
vertices: (Mutable)List<LatLngAltitude!>!

The vertices of the hole.

Public functions

getVertices

fun getVertices(): (Mutable)List<LatLngAltitude!>!

The vertices of the hole.

setVertices

fun setVertices(vertices: (Mutable)List<LatLngAltitude!>!): Unit

Sets the vertices of the hole.

writeToParcel

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

Extension functions

validate

fun Hole.validate(): Unit

Validates that the given Hole is correct.

Throws
java.lang.IllegalArgumentException

If the Hole is not valid.