Orientation

class Orientation : Parcelable


A representation of a rotation transformation with three degrees of freedom.

Summary

Public constructors

Orientation(heading: Double, tilt: Double, roll: Double)

Default constructor for Orientation used to initialize all its fields with the specified values.

Public functions

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

Public properties

Double
Double
Double

Extension functions

Unit

Validates a specified Orientation object properties: heading, tilt, and roll.

Unit

Validates a specified Orientation object properties: heading, tilt, and roll for model.

Inherited functions

From android.os.Parcelable
abstract Int

Constants

CREATOR

const val CREATORParcelable.Creator<Orientation!>!

Public constructors

Orientation

Orientation(heading: Double, tilt: Double, roll: Double)

Default constructor for Orientation used to initialize all its fields with the specified values.

Public functions

writeToParcel

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

Public properties

heading

var headingDouble

roll

var rollDouble

tilt

var tiltDouble

Extension functions

validate

fun Orientation.validate(): Unit

Validates a specified Orientation object properties: heading, tilt, and roll.

Throws
java.lang.IllegalArgumentException

If the Orientation is not valid.

validateForModel

fun Orientation.validateForModel(): Unit

Validates a specified Orientation object properties: heading, tilt, and roll for model.

Throws
java.lang.IllegalArgumentException

If the Orientation is not valid.