Class Direction

Defines a direction.

Direction

Constructors

Properties

directionMap: DirectionMap

The direction map for this direction.

Memberof

Direction

name: string

The name of this direction.

Memberof

Direction

vector: Vector3

The vector for this direction.

Memberof

Direction

Accessors

  • get uppercaseName(): string
  • The name of the direction with the first letter capitalized.

    Returns string

    Memberof

    Direction

  • get x(): number
  • The x component of the direction.

    Returns number

    Memberof

    Direction

  • get y(): number
  • The y component of the direction.

    Returns number

    Memberof

    Direction

  • get z(): number
  • The z component of the direction.

    Returns number

    Memberof

    Direction

Methods

  • Returns Generator<any, void, any>

  • Checks whether a direction name is equal to this direction name.

    Parameters

    • name: string

      The name to check.

    Returns boolean

    Memberof

    Direction

  • Sets the direction map for this direction.

    Parameters

    Returns void

    Memberof

    Direction

  • Returns the string representation of the direction.

    Returns string

    Memberof

    Direction

Generated using TypeDoc