Package schrodinger :: Package application :: Package matsci :: Module shapes :: Class Edge
[hide private]
[frames] | no frames]

Class Edge

object --+
         |
        Edge

Class to manage edges.

Instance Methods [hide private]
 
__init__(self, index, vertex_1, vertex_2)
Create an edge instance.
float
getLength(self)
Return the edge length.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, index, vertex_1, vertex_2)
(Constructor)

 

Create an edge instance.

Parameters:
  • index (int) - the index of this edge
  • vertex_1 (Vertex) - the first vertex in this edge
  • vertex_2 (Vertex) - the second vertex in this edge
Overrides: object.__init__

getLength(self)

 

Return the edge length.

Returns: float
the edge length in Ang.