Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PrincipalAxes

Principal axes

Hierarchy

  • PrincipalAxes

Index

Constructors

constructor

Properties

begA

begA: Vector3

begB

begB: Vector3

begC

begC: Vector3

center

center: Vector3

endA

endA: Vector3

endB

endB: Vector3

endC

endC: Vector3

normVecA

normVecA: Vector3

normVecB

normVecB: Vector3

normVecC

normVecC: Vector3

vecA

vecA: Vector3

vecB

vecB: Vector3

vecC

vecC: Vector3

Methods

getBasisMatrix

  • getBasisMatrix(optionalTarget?: Matrix4): Matrix4
  • Get the basis matrix descriping the axes

    Parameters

    • Default value optionalTarget: Matrix4 = new Matrix4()

    Returns Matrix4

    the basis

getProjectedScaleForAtoms

  • getProjectedScaleForAtoms(structure: Structure): { d1a: number; d1b: number; d2a: number; d2b: number; d3a: number; d3b: number }
  • Get the scale/length for each dimension for a box around the axes to enclose the atoms of a structure

    Parameters

    Returns { d1a: number; d1b: number; d2a: number; d2b: number; d3a: number; d3b: number }

    scale

    • d1a: number
    • d1b: number
    • d2a: number
    • d2b: number
    • d3a: number
    • d3b: number

getRotationQuaternion

  • getRotationQuaternion(optionalTarget?: Quaternion): Quaternion
  • Get a quaternion descriping the axes rotation

    Parameters

    • Default value optionalTarget: Quaternion = new Quaternion()

    Returns Quaternion

    the rotation

Generated using TypeDoc