Package esys :: Package lsm :: Package vis :: Package core :: Module cylinder :: Class Cylinder
[hide private]
[frames] | no frames]

Class Cylinder

object --+
         |
        Cylinder
Known Subclasses:

Objects of this class represent cylinders.

Instance Methods [hide private]
 
__init__(self, endPt1, endPt2, radius)
Initialises cylinder with center-end-point coordinates and radius.
 
getEndPt1(self)
Returns the coordinate of the center coordinate of end 1.
 
getEndPt2(self)
Returns the coordinate of the center coordinate of end 2.
 
getCenter(self)
Returns the coordinate of the center of this cylinder.
float
getHeight(self)
Returns the height of this cylinder.
 
getRadius(self)
Returns the radius of this cylinder.

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, endPt1, endPt2, radius)
(Constructor)

 

Initialises cylinder with center-end-point coordinates and radius.

Parameters:
  • endPt1 (sequence of 3 floats) - Center coordinate of one end.
  • endPt2 (sequence of 3 floats) - Center coordinate of other end.
  • radius (float) - Radius of cylinder.
Overrides: object.__init__

getEndPt1(self)

 

Returns the coordinate of the center coordinate of end 1.

Returns:
Center coordinate of end 1.

getEndPt2(self)

 

Returns the coordinate of the center coordinate of end 2.

Returns:
Center coordinate of end 2.

getCenter(self)

 

Returns the coordinate of the center of this cylinder.

Returns:
Center coordinate of this cylinder.

getHeight(self)

 

Returns the height of this cylinder.

Returns: float
Center coordinate of this cylinder.

getRadius(self)

 

Returns the radius of this cylinder.

Returns:
Radius of this cylinder.