C# Class ByChance.Levels3D.Context3D

Describes a position a chunk can be aligned at to another one in a 3D level.
Inheritance: ByChance.Core.Context
Afficher le fichier Open project: npruehs/bychance Class Usage Examples

Méthodes publiques

Méthode Description
IsAdjacentTo ( Context other, float offset ) : bool

Checks whether this context is within offset to other in terms of the Euclidean norm.

ToString ( ) : string

Returns the absolute position of this context within the level as string.

Private Methods

Méthode Description
Context3D ( Context3D template, Chunk source ) : System

Constructs a new context with the same index and relative position as the passed one and attaches it to the specified chunk.

Context3D ( Vector3F relativePosition ) : System

Constructs a new context with the passed position relative to the position of the chunk it belongs to.

Context3D ( Vector3F relativePosition, string tag ) : System

Constructs a new context of the specified category and with the passed position relative to the position of the chunk it belongs to.

Method Details

IsAdjacentTo() public méthode

Checks whether this context is within offset to other in terms of the Euclidean norm.
Context to check the adjacency to is null. Context to check the adjacency to is not of type .
public IsAdjacentTo ( Context other, float offset ) : bool
other ByChance.Core.Context Context to check the adjacency to.
offset float Offset within this context is considered to be adjacent to .
Résultat bool

ToString() public méthode

Returns the absolute position of this context within the level as string.
public ToString ( ) : string
Résultat string