SqDirn

ostrat.prid.psq.SqDirn
sealed trait SqDirn extends TDirn

A square tile direction can take 8 values. This can be used for square grid steps or quantums.

Attributes

Graph
Supertypes
trait TDirn
class Object
trait Matchable
class Any
Known subtypes
object SqDL.type
object SqDR.type
object SqUL.type
object SqUR.type
object SqDn.type
object SqLt.type
object SqRt.type
object SqUp.type

Members list

Concise view

Value members

Abstract methods

The angle of inclination of this square grid direction.

The angle of inclination of this square grid direction.

Attributes

Is an UpRight / DownRight / DownLeft / UPLeft step.

Is an UpRight / DownRight / DownLeft / UPLeft step.

Attributes

Is perpendicular or non diagonal an Up / Right / Down / Left square tile direction or step

Is perpendicular or non diagonal an Up / Right / Down / Left square tile direction or step

Attributes

the step that foes in the opposite direct to this step.

the step that foes in the opposite direct to this step.

Attributes

Concrete methods

The SqCen that this step would point to if it departed from SqCen(0, 0).

The SqCen that this step would point to if it departed from SqCen(0, 0).

Attributes

Inherited methods

def tc: Int

Tile step c column coordinate delta

Tile step c column coordinate delta

Attributes

Inherited from:
TDirn
def tr: Int

Tile step r row coordinate delta.

Tile step r row coordinate delta.

Attributes

Inherited from:
TDirn