route_to_line

ipkiss3.all.route_to_line(start_pos, angle_in, line_point, line_angle, bend_size_fn, bend90_size_fn=None, max_s_bend_angle=90.0, s_bend_angle_resolution=-0.1, start_straight=0.0, end_straight=0.0, min_straight=0.0)

Calculate a route that ends on a given line.

Parameters:
start_pospoint

2-dimensional point from where the route should start.

angle_infloat

The angle the route needs to start with.

line_pointpoint

A point on the line you want to route to.

line_anglefloat

Angle of the line you want to route to

bend_size_fncallable

Calculates the sizes of the bends

max_s_bend_anglefloat

The maximum angle of the bends along the route

start_straightfloat

The length of the start straight section

end_straightfloat

The length of the end straight section

min_straightfloat

The minimum length of any intermediary straight sections. ( like in U-turns )

Returns:
numpy array

An array of points that represents the path of the route.