Dynamic Header Scripting Dark Center Band Scripting
Learn / Documentation / Script Reference / CardinalDirection
Manual

CardinalDirection

class in Doozy.Engine.Touchy?

Description

Contains static values for all the cardinal directions

Static Properties

  • public static readonly Vector2 None ? Direction Unknown. Returns Vector2(0, 0)

  • public static readonly Vector2 Up ? Direction Up. Returns Vector2(0, 1)

  • public static readonly Vector2 Down ? Direction Down. Returns Vector2(0, -1)

  • public static readonly Vector2 Right ? Direction Right. Returns Vector2(1, 0)

  • public static readonly Vector2 Left ? Direction Left. Returns Vector2(-1, 0)

  • public static readonly Vector2 UpRight ? Direction Up-Right. Returns Vector2(1, 1)

  • public static readonly Vector2 UpLeft ? Direction Up-Left. Returns Vector2(-1, 1)

  • public static readonly Vector2 DownRight ? Direction Down-Right. Returns Vector2(1, -1)

  • public static readonly Vector2 DownLeft ? Direction Down-Left. Returns Vector2(-1, 1)

Static Methods

  • public static Vector2 Get(Swipe swipe) ? Returns the Vector2 representation of the given swipe direction