C# Class Dwarrowdelf.DirectionExtensions

Afficher le fichier Open project: tomba/dwarrowdelf Class Usage Examples

Méthodes publiques

Свойство Type Description
CardinalDirections Direction[]
CardinalUpDownDirections Direction[]
IntercardinalDirections Direction[]
PlanarDirections Direction[]
PlanarUpDownDirections Direction[]

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
DirectionExtensions ( ) : System

Method Details

ComponentsToDirection() public static méthode

public static ComponentsToDirection ( int x, int y ) : Direction
x int
y int
Résultat Direction

ComponentsToDirection() public static méthode

public static ComponentsToDirection ( int x, int y, int z ) : Direction
x int
y int
z int
Résultat Direction

Contains() public static méthode

public static Contains ( this dirset, Direction dir ) : bool
dirset this
dir Direction
Résultat bool

ContainsDown() public static méthode

public static ContainsDown ( this dir ) : bool
dir this
Résultat bool

ContainsUp() public static méthode

public static ContainsUp ( this dir ) : bool
dir this
Résultat bool

DirectionToComponents() public static méthode

public static DirectionToComponents ( this dir, int &x, int &y ) : void
dir this
x int
y int
Résultat void

DirectionToComponents() public static méthode

public static DirectionToComponents ( this dir, int &x, int &y, int &z ) : void
dir this
x int
y int
z int
Résultat void

IsCardinal() public static méthode

public static IsCardinal ( this dir ) : bool
dir this
Résultat bool

IsCardinalUpDown() public static méthode

public static IsCardinalUpDown ( this dir ) : bool
dir this
Résultat bool

IsIntercardinal() public static méthode

public static IsIntercardinal ( this dir ) : bool
dir this
Résultat bool

IsPlanar() public static méthode

public static IsPlanar ( this dir ) : bool
dir this
Résultat bool

IsPlanarUpDown() public static méthode

public static IsPlanarUpDown ( this dir ) : bool
dir this
Résultat bool

IsValid() public static méthode

public static IsValid ( this dir ) : bool
dir this
Résultat bool

Reverse() public static méthode

public static Reverse ( this dir ) : Direction
dir this
Résultat Direction

Reverse() public static méthode

public static Reverse ( this ds ) : DirectionSet
ds this
Résultat DirectionSet

ToDirectionOrdinal() public static méthode

public static ToDirectionOrdinal ( this dir ) : DirectionOrdinal
dir this
Résultat DirectionOrdinal

ToDirectionSet() public static méthode

public static ToDirectionSet ( this dir ) : DirectionSet
dir this
Résultat DirectionSet

ToDirections() public static méthode

public static ToDirections ( this dirset ) : IEnumerable
dirset this
Résultat IEnumerable

ToIntVector2() public static méthode

public static ToIntVector2 ( this dir ) : IntVector2
dir this
Résultat IntVector2

ToIntVector3() public static méthode

public static ToIntVector3 ( this dir ) : IntVector3
dir this
Résultat IntVector3

ToPlanarDirection() public static méthode

public static ToPlanarDirection ( this dir ) : Direction
dir this
Résultat Direction

ToSurroundingPoints() public static méthode

public static ToSurroundingPoints ( this dirset, IntVector2 p ) : IEnumerable
dirset this
p IntVector2
Résultat IEnumerable

ToSurroundingPoints() public static méthode

public static ToSurroundingPoints ( this dirset, IntVector3 p ) : IEnumerable
dirset this
p IntVector3
Résultat IEnumerable

ToVectors() public static méthode

public static ToVectors ( this dirset ) : IEnumerable
dirset this
Résultat IEnumerable

Property Details

CardinalDirections public_oe static_oe property

Cardinal Directions (4)
public static Direction[] CardinalDirections
Résultat Direction[]

CardinalUpDownDirections public_oe static_oe property

Cardinal + Up + Down (6)
public static Direction[] CardinalUpDownDirections
Résultat Direction[]

IntercardinalDirections public_oe static_oe property

Intercardinal Directions (4)
public static Direction[] IntercardinalDirections
Résultat Direction[]

PlanarDirections public_oe static_oe property

Planar Directions (8)
public static Direction[] PlanarDirections
Résultat Direction[]

PlanarUpDownDirections public_oe static_oe property

Planar Directions + Up + Down (10)
public static Direction[] PlanarUpDownDirections
Résultat Direction[]