NGL@0.10.4 Home Manual Reference Source GalleryRepository
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 get
public get
public
public
public

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 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 get atomIndex2: Integer source

public get bondOrder: Integer source

public bondStore: BondStore source

public index: Integer source

public structure: Structure 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