class documentation

class Speed(_BaseSpeed): (source)

View In Hierarchy

The speed (rate of movement) of a mobile object.
Method __init__ Initializes a Speed object.

Inherited from _BaseSpeed:

Method __float__ Returns the speed represented by this object expressed in meters per second.
Method __repr__ Returns a string representation of this speed object.
Class Variable compare​Attributes Undocumented
Property in​Knots Returns the speed represented by this object, expressed in knots. This attribute is immutable.
Property in​Meters​Per​Second The speed that this object represents, expressed in meters per second. This attribute is immutable.
Instance Variable _speed Undocumented

Inherited from FancyEqMixin (via _BaseSpeed):

Method __eq__ Undocumented
Method __ne__ Undocumented
def __init__(self, speed): (source)
Initializes a Speed object.
Parameters
speed:floatThe speed that this object represents, expressed in meters per second.
Raises
ValueErrorRaised if speed is negative.