libpysal.cg.Ray¶
-
class
libpysal.cg.
Ray
(origin, second_p)[source]¶ Geometric representation of ray objects.
- Attributes
- oPoint
Origin (point where ray originates)
- pPoint
Second point on the ray (not point where ray originates)
-
__init__
(self, origin, second_p)[source]¶ Returns a ray with the values specified.
__init__(Point, Point) -> Ray
- Parameters
- originthe point where the ray originates
- second_pthe second point specifying the ray (not the origin)
Examples
>>> l = Ray(Point((0, 0)), Point((1, 0))) >>> str(l.o) '(0.0, 0.0)' >>> str(l.p) '(1.0, 0.0)'
Methods
__init__
(self, origin, second_p)Returns a ray with the values specified.