NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import BondProxy from 'ngl/src/proxy/bond-proxy.js'
public class | source

BondProxy

Bond proxy

Constructor Summary

Public Constructor
public

constructor(structure: Structure, index: Integer)

Member Summary

Public Members
public get
public get
public get
public set
public set
public get
public get
public set
public
public
public
Private Members
private
private
private
private
private

Method Summary

Public Methods
public

calculate shift direction for displaying double/triple bonds

public

Clone object

public

Get reference atom index for the bond

public
public

Public Constructors

public constructor(structure: Structure, index: Integer) source

Params:

NameTypeAttributeDescription
structure Structure

the structure

index Integer

the index

Public Members

public get atom1: AtomProxy source

public get atom2: AtomProxy source

public get atomIndex1: Integer source

public set atomIndex1 source

public set atomIndex2 source

public get atomIndex2: Integer source

public get bondOrder: Integer source

public set bondOrder source

public bondStore: BondStore source

public index: Integer source

public structure: Structure source

Private Members

private _ap1 source

private _ap2 source

private _ap3 source

private _v12 source

private _v13 source

Public Methods

public calculateShiftDir(v: Vector3): Vector3 source

calculate shift direction for displaying double/triple bonds

Params:

NameTypeAttributeDescription
v Vector3
  • optional

pre-allocated output vector

Return:

Vector3

the shift direction vector

public clone(): BondProxy source

Clone object

Return:

BondProxy

cloned bond

public getReferenceAtomIndex(): Integer | undefined source

Get reference atom index for the bond

Return:

Integer | undefined

atom index, or undefined if unavailable

public qualifiedName() source

public toObject() source