Options
All
  • Public
  • Public/Protected
  • All
Menu

Class containing different useful operations to apply to coordinates set with a side

since

5.0

Hierarchy

Index

Constructors

Properties

DOWN: Direction
new Direction(0, 1, -1, "down", AxisDirection.NEGATIVE, Axis.Y, new Vec3i(0, -1, 0));
since

5.0

EAST: Direction
new Direction(5, 4, 3, "east", AxisDirection.POSITIVE, Axis.X, new Vec3i(1, 0, 0));
since

5.0

NORTH: Direction
new Direction(2, 3, 2, "north", AxisDirection.NEGATIVE, Axis.Z, new Vec3i(0, 0, -1));
since

5.0

SOUTH: Direction
new Direction(3, 2, 0, "south", AxisDirection.POSITIVE, Axis.Z, new Vec3i(0, 0, 1));
since

5.0

new Direction(1, 0, -1, "up", AxisDirection.POSITIVE, Axis.Y, new Vec3i(0, 1, 0));
since

5.0

WEST: Direction
new Direction(4, 5, 1, "west", AxisDirection.NEGATIVE, Axis.X, new Vec3i(-1, 0, 0));
since

5.0

class: Class<Object>

Methods

  • clone(): any
  • equals(param0: any): boolean
  • Parameters

    • param0: any

    Returns boolean

  • finalize(): void
  • getFrontOffsetX(): number
  • since

    5.0

    Returns number

    value added to the X coordinate of a vector, if the offset with the following Direction is applied to it. Can be 0 or 1.

  • getFrontOffsetY(): number
  • since

    5.0

    Returns number

    value added to the Y coordinate of a vector, if the offset with the following Direction is applied to it. Can be 0 or 1.

  • getFrontOffsetZ(): number
  • since

    5.0

    Returns number

    value added to the Z coordinate of a vector, if the offset with the following Direction is applied to it. Can be 0 or 1.

  • getHorizontalAngle(): number
  • getIndex(): number
  • hashCode(): number
  • notify(): void
  • notifyAll(): void
  • toString(): string
  • wait(): void
  • wait(param0: number): void
  • wait(param0: number, param1: number): void
  • Returns void

  • Parameters

    • param0: number

    Returns void

  • Parameters

    • param0: number
    • param1: number

    Returns void

  • getFacingFromVector(x: number, y: number, z: number): Direction

Generated using TypeDoc