Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HoneycombLattice

Hierarchy

Index

Constructors

constructor

  • new HoneycombLattice(width?: number, height?: number, cellDiameter?: number, matrix?: Matrix4): HoneycombLattice

Properties

Protected _cellDiameter

_cellDiameter: number

Protected _end

_end: Vector3

Protected _height

_height: number = Lattice.DEFAULT_HEIGHT

Private _hoffset

_hoffset: number

Protected _matrix

_matrix: Matrix4

Protected _parentComponent

_parentComponent: LatticeComponent | undefined

Protected _start

_start: Vector3

Private _voffset

_voffset: number

Protected _width

_width: number = Lattice.DEFAULT_WIDTH

Static Protected Readonly DEFAULT_HEIGHT

DEFAULT_HEIGHT: number = 8

Static Protected Readonly DEFAULT_HEIGHT_MAX

DEFAULT_HEIGHT_MAX: number = 128

Static Protected Readonly DEFAULT_WIDTH

DEFAULT_WIDTH: number = 8

Static Protected Readonly DEFAULT_WIDTH_MAX

DEFAULT_WIDTH_MAX: number = 128

Static Protected Readonly LATTICE_COLUMN

LATTICE_COLUMN: Vector3 = new Vector3(1, 0, 0)

Static Protected Readonly LATTICE_NORMAL

LATTICE_NORMAL: Vector3 = new Vector3(0, 0, 1)

Static Protected Readonly LATTICE_ROW

LATTICE_ROW: Vector3 = new Vector3(0, 1, 0)

Accessors

cellDiameter

  • get cellDiameter(): number

height

  • get height(): number

Protected hoffset

  • get hoffset(): number

latticeType

parentComponent

type

  • get type(): string

Protected voffset

  • get voffset(): number

width

  • get width(): number

Methods

getColumnAxis

  • getColumnAxis(applyCompTransf?: boolean): Vector3

getCoordinatesFromIndex

  • getCoordinatesFromIndex(index: number): {}

getIndex

  • getIndex(rowIndex: number, colIndex: number): number

getNormal

  • getNormal(applyCompTransf?: boolean): Vector3

getPosition

  • getPosition(rowIndex: number, colIndex: number, depth?: number, applyCompTransf?: boolean): Vector3
  • Given the coordinates of a lattice cell (rowIndex and colIndex), return the 3D position of that cell

    Parameters

    • rowIndex: number

      The row index of the lattice cell

    • colIndex: number

      The row index of the lattice cell

    • Default value depth: number = 0
    • Default value applyCompTransf: boolean = true

    Returns Vector3

getPositionFromIndex

  • getPositionFromIndex(index: number): Vector3

getRowAxis

  • getRowAxis(applyCompTransf?: boolean): Vector3

Protected getX

  • getX(rowIndex: number, colIndex: number): number

Protected getY

  • getY(rowIndex: number, colIndex: number): number

Protected getZ

  • getZ(depth: number): number

moveOriginToNewLocation

  • moveOriginToNewLocation(newOrigin: Vector3): void

resize

  • resize(newWidth: number, newHeight: number): void

resizeFromLengths

  • resizeFromLengths(widthLength: number, heightLength: number): void

Generated using TypeDoc