Package Scientific :: Package Geometry :: Module Objects3D :: Class Line
[hide private]
[frames] | no frames]

Class Line



GeometricalObject3D --+
                      |
                     Line

Line

Instance Methods [hide private]
  __init__(self, point, direction)
float distanceFrom(self, point)
Scientific.Geometry.Vector projectionOf(self, point)
Returns the projection of point onto the line
float or NoneType volume(self)
Returns the volume of the object.

Inherited from GeometricalObject3D: hasPoint, intersectWith


Method Details [hide private]

__init__(self, point, direction)
(Constructor)

 
Parameters:

distanceFrom(self, point)

 
Returns: float
Overrides: GeometricalObject3D.distanceFrom
(inherited documentation)

projectionOf(self, point)

 
Parameters:
Returns: Scientific.Geometry.Vector
the projection of point onto the line

volume(self)

 
Returns: float or NoneType
the volume of the object. The result is None for unbounded objects and zero for lower-dimensional objects.
Overrides: GeometricalObject3D.volume
(inherited documentation)