Enumerationfwcd.swift-utils 4.6.2Utils
Direction
An axis-aligned direction in the 2D-plane.
enum Direction
An axis-aligned direction in the 2D-plane.
enum Direction
import Utils
case up
case down
case left
case right
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
init?(rawValue: String)
var asUnitVector: Vec2<Int> { get }
var axis: Axis { get }
var horizontal: Bool { get }
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)