Table of Contents

Method IsPerpendicular

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

IsPerpendicular(GeoVector2, GeoVector2)

Checks whether two vectors are perpendicular using default tolerance.

public static bool IsPerpendicular(GeoVector2 v1, GeoVector2 v2)

Parameters

v1 GeoVector2

The first vector.

v2 GeoVector2

The second vector.

Returns

bool

true if the vectors are perpendicular; otherwise, false.

IsPerpendicular(GeoVector2, GeoVector2, Tolerance)

Checks whether two vectors are perpendicular within angular tolerance.

public static bool IsPerpendicular(GeoVector2 v1, GeoVector2 v2, Tolerance tolerance)

Parameters

v1 GeoVector2

The first vector.

v2 GeoVector2

The second vector.

tolerance Tolerance

The tolerance containing the angular threshold in radians.

Returns

bool

true if the vectors are perpendicular within tolerance; otherwise, false.

IsPerpendicular(GeoLine2, GeoLine2)

Checks whether two line segments are perpendicular using default tolerance.

public static bool IsPerpendicular(GeoLine2 line1, GeoLine2 line2)

Parameters

line1 GeoLine2

The first line segment.

line2 GeoLine2

The second line segment.

Returns

bool

true if the line segments are perpendicular; otherwise, false.

IsPerpendicular(GeoLine2, GeoLine2, Tolerance)

Checks whether two line segments are perpendicular within angular tolerance.

public static bool IsPerpendicular(GeoLine2 line1, GeoLine2 line2, Tolerance tolerance)

Parameters

line1 GeoLine2

The first line segment.

line2 GeoLine2

The second line segment.

tolerance Tolerance

The tolerance.

Returns

bool

true if the line segments are perpendicular within tolerance; otherwise, false.

IsPerpendicular(GeoLine2, GeoVector2)

Checks whether a line segment is perpendicular to a vector using default tolerance.

public static bool IsPerpendicular(GeoLine2 line, GeoVector2 vector)

Parameters

line GeoLine2
vector GeoVector2

Returns

bool

IsPerpendicular(GeoLine2, GeoVector2, Tolerance)

Checks whether a line segment is perpendicular to a vector within angular tolerance.

public static bool IsPerpendicular(GeoLine2 line, GeoVector2 vector, Tolerance tolerance)

Parameters

line GeoLine2
vector GeoVector2
tolerance Tolerance

Returns

bool