flix

0.75.3

Orbit64.Frame

enum Frame with Eq, ToStringSource
case Frame(Int32)

A rank in the 24-element group of right-handed whole-cube frames.

Instances

instance Eq[Frame]Source
instance ToString[Frame]Source

Definitions

def canonical(): Frame§ Source

The reference frame with the familiar U R F D L B face list.

def count(): Int32§ Source

The number of distinguishable whole-cube frames.

def faces(frame: Frame): List[Face]§ Source

The physical faces occupying the reference slots U R F D L B after applying the frame's x, z, then y rotations.

def faultOf(frame: Frame): Option[String]§ Source

Explain why a frame rank is outside the 24-element orientation group.

def notation(frame: Frame): String§ Source

Render faces(frame) in compact spaced WCA notation.

def rank(frame: Frame): Int32§ Source

Return the canonical rank of frame.

def unrank(rank: Int32): Frame§ Source

Recover a frame from its canonical rank. Values outside 0..23 map to the canonical frame; decoders validate their rank before calling this.

def xTurns(frame: Frame): Int32§ Source

The number of clockwise x rotations in the wire transform.

def yTurns(frame: Frame): Int32§ Source

The number of clockwise y rotations in the wire transform.

def zTurns(frame: Frame): Int32§ Source

The number of clockwise z rotations in the wire transform.