SliceOrientation

inline class SliceOrientation(val raw: Int)

Represents an orientation where: flipX and flipY is applied first, and then rotation.

Constructors

Link copied to clipboard
constructor(rotation: SliceRotation = SliceRotation.R0, flipX: Boolean = false)
constructor(raw: Int)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
object Indices

Properties

Link copied to clipboard
Link copied to clipboard

Indices represent TL, TR, BR, BL

Link copied to clipboard
Link copied to clipboard
val raw: Int
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getX(width: Int, height: Int, x: Int, y: Int): Int
Link copied to clipboard
fun getXY(width: Int, height: Int, x: Int, y: Int): PointInt
Link copied to clipboard
fun getY(width: Int, height: Int, x: Int, y: Int): Int
Link copied to clipboard
Link copied to clipboard
fun rotatedLeft(offset: Int = 1): SliceOrientation
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard