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
v1GeoVector2The first vector.
v2GeoVector2The 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
v1GeoVector2The first vector.
v2GeoVector2The second vector.
toleranceToleranceThe 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
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
line1GeoLine2The first line segment.
line2GeoLine2The second line segment.
toleranceToleranceThe 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
lineGeoLine2vectorGeoVector2
Returns
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
lineGeoLine2vectorGeoVector2toleranceTolerance