RouteMeander.assign_direction_to_anchor#

RouteMeander.assign_direction_to_anchor(ref_pt: QRoutePoint, anchor_pt: QRoutePoint)#

Method to assign a direction to a point. Currently assigned as the max(x,y projection) of the direct path between the reference point and the anchor. Method directly modifies the anchor_pt.direction, thus there is no return value.

Parameters:
  • ref_pt (QRoutePoint) – Reference point

  • anchor_pt (QRoutePoint) – Anchor point. if it already has a direction, the method will not overwrite it