DiscreteRotation.Companion


public static class DiscreteRotation.Companion


Summary

Public methods

static final @NonNull DiscreteRotation
from(int degrees)

Convert integer degrees to a DiscreteRotation

static final @NonNull DiscreteRotation
fromSurfaceRotation(int surfaceRotation)

Get a DiscreteRotation from Surface rotation values.

static final @NonNull DiscreteRotation
round(float degrees)

Round floating point degrees to a DiscreteRotation.

static final @NonNull DiscreteRotation
round(int degrees)

Round integer degrees to a DiscreteRotation.

Public methods

from

Added in 1.7.0-alpha01
public static final @NonNull DiscreteRotation from(int degrees)

Convert integer degrees to a DiscreteRotation

fromSurfaceRotation

Added in 1.7.0-alpha01
public static final @NonNull DiscreteRotation fromSurfaceRotation(int surfaceRotation)

Get a DiscreteRotation from Surface rotation values.

round

Added in 1.7.0-alpha01
public static final @NonNull DiscreteRotation round(float degrees)

Round floating point degrees to a DiscreteRotation.

round

Added in 1.7.0-alpha01
public static final @NonNull DiscreteRotation round(int degrees)

Round integer degrees to a DiscreteRotation.