C# 클래스 Dwarrowdelf.DirectionExtensions

파일 보기 프로젝트 열기: tomba/dwarrowdelf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CardinalDirections Direction[]
CardinalUpDownDirections Direction[]
IntercardinalDirections Direction[]
PlanarDirections Direction[]
PlanarUpDownDirections Direction[]

공개 메소드들

메소드 설명
ComponentsToDirection ( int x, int y ) : Direction
ComponentsToDirection ( int x, int y, int z ) : Direction
Contains ( this dirset, Direction dir ) : bool
ContainsDown ( this dir ) : bool
ContainsUp ( this dir ) : bool
DirectionToComponents ( this dir, int &x, int &y ) : void
DirectionToComponents ( this dir, int &x, int &y, int &z ) : void
IsCardinal ( this dir ) : bool
IsCardinalUpDown ( this dir ) : bool
IsIntercardinal ( this dir ) : bool
IsPlanar ( this dir ) : bool
IsPlanarUpDown ( this dir ) : bool
IsValid ( this dir ) : bool
Reverse ( this dir ) : Direction
Reverse ( this ds ) : DirectionSet
ToDirectionOrdinal ( this dir ) : DirectionOrdinal
ToDirectionSet ( this dir ) : DirectionSet
ToDirections ( this dirset ) : IEnumerable
ToIntVector2 ( this dir ) : IntVector2
ToIntVector3 ( this dir ) : IntVector3
ToPlanarDirection ( this dir ) : Direction
ToSurroundingPoints ( this dirset, IntVector2 p ) : IEnumerable
ToSurroundingPoints ( this dirset, IntVector3 p ) : IEnumerable
ToVectors ( this dirset ) : IEnumerable

비공개 메소드들

메소드 설명
DirectionExtensions ( ) : System

메소드 상세

ComponentsToDirection() 공개 정적인 메소드

public static ComponentsToDirection ( int x, int y ) : Direction
x int
y int
리턴 Direction

ComponentsToDirection() 공개 정적인 메소드

public static ComponentsToDirection ( int x, int y, int z ) : Direction
x int
y int
z int
리턴 Direction

Contains() 공개 정적인 메소드

public static Contains ( this dirset, Direction dir ) : bool
dirset this
dir Direction
리턴 bool

ContainsDown() 공개 정적인 메소드

public static ContainsDown ( this dir ) : bool
dir this
리턴 bool

ContainsUp() 공개 정적인 메소드

public static ContainsUp ( this dir ) : bool
dir this
리턴 bool

DirectionToComponents() 공개 정적인 메소드

public static DirectionToComponents ( this dir, int &x, int &y ) : void
dir this
x int
y int
리턴 void

DirectionToComponents() 공개 정적인 메소드

public static DirectionToComponents ( this dir, int &x, int &y, int &z ) : void
dir this
x int
y int
z int
리턴 void

IsCardinal() 공개 정적인 메소드

public static IsCardinal ( this dir ) : bool
dir this
리턴 bool

IsCardinalUpDown() 공개 정적인 메소드

public static IsCardinalUpDown ( this dir ) : bool
dir this
리턴 bool

IsIntercardinal() 공개 정적인 메소드

public static IsIntercardinal ( this dir ) : bool
dir this
리턴 bool

IsPlanar() 공개 정적인 메소드

public static IsPlanar ( this dir ) : bool
dir this
리턴 bool

IsPlanarUpDown() 공개 정적인 메소드

public static IsPlanarUpDown ( this dir ) : bool
dir this
리턴 bool

IsValid() 공개 정적인 메소드

public static IsValid ( this dir ) : bool
dir this
리턴 bool

Reverse() 공개 정적인 메소드

public static Reverse ( this dir ) : Direction
dir this
리턴 Direction

Reverse() 공개 정적인 메소드

public static Reverse ( this ds ) : DirectionSet
ds this
리턴 DirectionSet

ToDirectionOrdinal() 공개 정적인 메소드

public static ToDirectionOrdinal ( this dir ) : DirectionOrdinal
dir this
리턴 DirectionOrdinal

ToDirectionSet() 공개 정적인 메소드

public static ToDirectionSet ( this dir ) : DirectionSet
dir this
리턴 DirectionSet

ToDirections() 공개 정적인 메소드

public static ToDirections ( this dirset ) : IEnumerable
dirset this
리턴 IEnumerable

ToIntVector2() 공개 정적인 메소드

public static ToIntVector2 ( this dir ) : IntVector2
dir this
리턴 IntVector2

ToIntVector3() 공개 정적인 메소드

public static ToIntVector3 ( this dir ) : IntVector3
dir this
리턴 IntVector3

ToPlanarDirection() 공개 정적인 메소드

public static ToPlanarDirection ( this dir ) : Direction
dir this
리턴 Direction

ToSurroundingPoints() 공개 정적인 메소드

public static ToSurroundingPoints ( this dirset, IntVector2 p ) : IEnumerable
dirset this
p IntVector2
리턴 IEnumerable

ToSurroundingPoints() 공개 정적인 메소드

public static ToSurroundingPoints ( this dirset, IntVector3 p ) : IEnumerable
dirset this
p IntVector3
리턴 IEnumerable

ToVectors() 공개 정적인 메소드

public static ToVectors ( this dirset ) : IEnumerable
dirset this
리턴 IEnumerable

프로퍼티 상세

CardinalDirections 공개적으로 정적으로 프로퍼티

Cardinal Directions (4)
public static Direction[] CardinalDirections
리턴 Direction[]

CardinalUpDownDirections 공개적으로 정적으로 프로퍼티

Cardinal + Up + Down (6)
public static Direction[] CardinalUpDownDirections
리턴 Direction[]

IntercardinalDirections 공개적으로 정적으로 프로퍼티

Intercardinal Directions (4)
public static Direction[] IntercardinalDirections
리턴 Direction[]

PlanarDirections 공개적으로 정적으로 프로퍼티

Planar Directions (8)
public static Direction[] PlanarDirections
리턴 Direction[]

PlanarUpDownDirections 공개적으로 정적으로 프로퍼티

Planar Directions + Up + Down (10)
public static Direction[] PlanarUpDownDirections
리턴 Direction[]