C# Класс ByChance.Levels3D.Context3D

Describes a position a chunk can be aligned at to another one in a 3D level.
Наследование: ByChance.Core.Context
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

IsAdjacentTo() публичный Метод

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 .
Результат bool

ToString() публичный Метод

Returns the absolute position of this context within the level as string.
public ToString ( ) : string
Результат string