Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: Square.Direction Clockwise(this Square.Direction, int)

Declaration

public static Square.Direction Clockwise(
    this Square.Direction dir,
    int amount = 1
)

Summary

Returns a new Square.Direction which is the specified multiple of 45° clockwise from the current direction.

Parameters

this Square.Directiondir Original starting direction.
intamount Number of 45° turns to perform. Use negative numbers to go counter-clockwise.