Package sabx10 :: Package oxm :: Module geom :: Class Line
[hide private]
[frames] | no frames]

Class Line

source code

object --+
         |
        Line
Known Subclasses:

A Line object is an ordered set of Point objects representing a line.

Instance Methods [hide private]
 
__init__(self, waypoints)
Save the passed-in data.
source code
float
calc_length(self)
Calculate the length of this line in statue miles.
source code
(float,float)
find_lowest_highest(self)
Discover the lowest and highest elevations of this line.
source code

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

Instance Variables [hide private]
list waypoints
list of Point objects
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, waypoints)
(Constructor)

source code 

Save the passed-in data.

Parameters:
  • waypoints (list) - list of Point objects
Overrides: object.__init__

calc_length(self)

source code 

Calculate the length of this line in statue miles.

Returns: float
length in statute miles

find_lowest_highest(self)

source code 

Discover the lowest and highest elevations of this line.

Returns: (float,float)
(lowest,highest) in feet