Table of Contents

Method IsParallelTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

IsParallelTo(GeoXLine2)

Checks whether this line is parallel to another using the default tolerance.

public bool IsParallelTo(GeoXLine2 other)

Parameters

other GeoXLine2

Returns

bool

IsParallelTo(GeoXLine2, Tolerance)

Checks whether this line is parallel to another within a tolerance.

public bool IsParallelTo(GeoXLine2 other, Tolerance tolerance)

Parameters

other GeoXLine2
tolerance Tolerance

Returns

bool

Remarks

Only the directions are compared, either way round, so a line is parallel to itself reversed and to any line it is the same line as.

IsParallelTo(GeoLine2)

Checks whether this line is parallel to a line segment using the default tolerance.

public bool IsParallelTo(GeoLine2 line)

Parameters

line GeoLine2

Returns

bool

IsParallelTo(GeoLine2, Tolerance)

Checks whether this line is parallel to a line segment within a tolerance.

public bool IsParallelTo(GeoLine2 line, Tolerance tolerance)

Parameters

line GeoLine2
tolerance Tolerance

Returns

bool

Remarks

Only the directions are compared, either way round: the line from the origin along X is parallel to the segment from (0, 10) to (-100, 10).