# is_point_on_line_xy

compas.geometry.is_point_on_line_xy(point, line, tol=1e-06)[source]

Determine if a point lies on a line on the XY-plane.

Parameters
• point (sequence of float) – XY(Z) coordinates of a point.

• line (tuple) – XY(Z) coordinates of two points defining a line.

• tol (float, optional) – A tolerance for membership verification. Default is 1e-6.

Returns

boolTrue if the point is in on the line. False otherwise.