EncodedOrigin

Entries

Link copied to clipboard

Do not use

Link copied to clipboard

Default

Link copied to clipboard

Reflected across y-axis

Link copied to clipboard

Rotated 180

Link copied to clipboard

Reflected across x-axis

Link copied to clipboard

Reflected across x-axis, Rotated 90 CCW

Link copied to clipboard

Rotated 90 CW

Link copied to clipboard

Reflected across x-axis, Rotated 90 CW

Link copied to clipboard

Rotated 90 CCW

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Return true if the encoded origin includes a 90 degree rotation, in which case the width and height of the source data are swapped relative to a correctly oriented destination.

Link copied to clipboard
fun toMatrix(w: Int, h: Int): Matrix33

Given an encoded origin and the width and height of the source data, returns a matrix that transforms the source rectangle with upper left corner at 0, 0 and origin to a correctly oriented destination rectangle of 0, 0, w, h.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.