Orientation

public class Orientation implements Parcelable


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

Summary

Constants

static final Parcelable.Creator<Orientation>

Public fields

double
double
double

Public constructors

Orientation(double heading, double tilt, double roll)

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

Public methods

double

The heading of the orientation.

double

The roll of the orientation.

double

The tilt of the orientation.

void
setHeading(double heading)

Sets the heading of the orientation.

void
setRoll(double roll)

Sets the roll of the orientation.

void
setTilt(double tilt)

Sets the tilt of the orientation.

void
writeToParcel(Parcel dest, int flags)

Extension functions

final void

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

final void

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

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<OrientationCREATOR

Public fields

heading

public double heading

roll

public double roll

tilt

public double tilt

Public constructors

Orientation

public Orientation(double heading, double tilt, double roll)

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

Public methods

getHeading

public double getHeading()

The heading of the orientation.

getRoll

public double getRoll()

The roll of the orientation.

getTilt

public double getTilt()

The tilt of the orientation.

setHeading

public void setHeading(double heading)

Sets the heading of the orientation.

setRoll

public void setRoll(double roll)

Sets the roll of the orientation.

setTilt

public void setTilt(double tilt)

Sets the tilt of the orientation.

writeToParcel

public void writeToParcel(Parcel dest, int flags)

Extension functions

ValidatorsKt.validate

public final void ValidatorsKt.validate(@NonNull Orientation receiver)

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

Throws
java.lang.IllegalArgumentException

If the Orientation is not valid.

ValidatorsKt.validateForModel

public final void ValidatorsKt.validateForModel(@NonNull Orientation receiver)

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

Throws
java.lang.IllegalArgumentException

If the Orientation is not valid.