bleNaviPy.indoorGML.geometry.transitionGeometry module¶
This is a module for transition geometry for indoorGML
-
class
bleNaviPy.indoorGML.geometry.transitionGeometry.TransitionGeometry(points: List[bleNaviPy.indoorGML.geometry.pointGeometry.Point])¶ Bases:
objectClass transition Contains information about paths
-
getClosestPoint(point: bleNaviPy.indoorGML.geometry.pointGeometry.Point) → bleNaviPy.indoorGML.geometry.pointGeometry.Point¶ Get the closest point on any segment
- Parameters
point (Point) – Test point
- Returns
Closest Point
- Return type
-
getDict() → dict¶ Get dictionary form of transition geometry ready for a saving
- Returns
Save ready dict form of transition geometry
- Return type
-
getDistance(point: bleNaviPy.indoorGML.geometry.pointGeometry.Point, precision: int = 4, scale: float = 1) → float¶ Get distance of a point to the closest segment of transition
- Parameters
point (Point) – Point to check
precision (int, optional) – [Return value precision]. Defaults to 4.
scale (float, optional) – Floor scale. Defaults to 1.
- Returns
Distance to the segment rounded to (precision) decimal places
- Return type
-
-
bleNaviPy.indoorGML.geometry.transitionGeometry.getClosestPointOnSegment(point: bleNaviPy.indoorGML.geometry.pointGeometry.Point, segment: List[bleNaviPy.indoorGML.geometry.pointGeometry.Point]) → bleNaviPy.indoorGML.geometry.pointGeometry.Point¶ Get point closest on segment
- Parameters
point (Point)
segment (List[List[Point]]) – Transition segment
- Returns
Point on segment
- Return type