Method IsParallel
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
IsParallel(GeoVector3, GeoVector3)
Checks whether two vectors are parallel or anti-parallel, using the default tolerance.
public static bool IsParallel(GeoVector3 v1, GeoVector3 v2)
Parameters
v1GeoVector3v2GeoVector3
Returns
IsParallel(GeoVector3, GeoVector3, Tolerance)
Checks whether two vectors are parallel or anti-parallel, within an angular tolerance.
public static bool IsParallel(GeoVector3 v1, GeoVector3 v2, Tolerance tolerance)
Parameters
v1GeoVector3The first vector.
v2GeoVector3The second vector.
toleranceToleranceThe tolerance carrying the angular threshold.
Returns
- bool
true if the vectors lie along a common line within tolerance; otherwise, false.
IsParallel(GeoLine3, GeoLine3)
Checks whether two line segments are parallel, using the default tolerance.
public static bool IsParallel(GeoLine3 line1, GeoLine3 line2)
Parameters
Returns
IsParallel(GeoLine3, GeoLine3, Tolerance)
Checks whether two line segments are parallel, within an angular tolerance.
public static bool IsParallel(GeoLine3 line1, GeoLine3 line2, Tolerance tolerance)
Parameters
Returns
IsParallel(GeoLine3, GeoVector3)
Checks whether a line segment runs parallel to a vector, using the default tolerance.
public static bool IsParallel(GeoLine3 line, GeoVector3 vector)
Parameters
lineGeoLine3vectorGeoVector3
Returns
IsParallel(GeoLine3, GeoVector3, Tolerance)
Checks whether a line segment runs parallel to a vector, within an angular tolerance.
public static bool IsParallel(GeoLine3 line, GeoVector3 vector, Tolerance tolerance)
Parameters
lineGeoLine3vectorGeoVector3toleranceTolerance
Returns
IsParallel(GeoLine3, GeoPlane3)
Checks whether a line segment runs parallel to a plane, using the default tolerance.
public static bool IsParallel(GeoLine3 line, GeoPlane3 plane)
Parameters
Returns
IsParallel(GeoLine3, GeoPlane3, Tolerance)
Checks whether a line segment runs parallel to a plane, within an angular tolerance.
public static bool IsParallel(GeoLine3 line, GeoPlane3 plane, Tolerance tolerance)
Parameters
Returns
Remarks
A line is parallel to a plane when its direction is perpendicular to the plane normal, which is why the two words swap places between this method and its implementation. A line lying in the plane satisfies this too: parallelism here is about direction, not about separation.
IsParallel(GeoRay3, GeoPlane3)
Checks whether a ray runs parallel to a plane, using the default tolerance.
public static bool IsParallel(GeoRay3 ray, GeoPlane3 plane)
Parameters
Returns
IsParallel(GeoRay3, GeoPlane3, Tolerance)
Checks whether a ray runs parallel to a plane, within an angular tolerance.
public static bool IsParallel(GeoRay3 ray, GeoPlane3 plane, Tolerance tolerance)
Parameters
Returns
IsParallel(GeoPlane3, GeoPlane3)
Checks whether two planes are parallel, using the default tolerance.
public static bool IsParallel(GeoPlane3 plane1, GeoPlane3 plane2)
Parameters
Returns
IsParallel(GeoPlane3, GeoPlane3, Tolerance)
Checks whether two planes are parallel, within an angular tolerance.
public static bool IsParallel(GeoPlane3 plane1, GeoPlane3 plane2, Tolerance tolerance)
Parameters
Returns
Remarks
Two planes facing opposite ways are still parallel, so this holds for a plane and its flip. It also holds for a plane and itself, and says nothing about how far apart they are.
IsParallel(GeoPolygon3, GeoPlane3)
Checks whether a polygon lies parallel to a plane, using the default tolerance.
public static bool IsParallel(GeoPolygon3 polygon, GeoPlane3 plane)
Parameters
polygonGeoPolygon3planeGeoPlane3
Returns
IsParallel(GeoPolygon3, GeoPlane3, Tolerance)
Checks whether a polygon lies parallel to a plane, within an angular tolerance.
public static bool IsParallel(GeoPolygon3 polygon, GeoPlane3 plane, Tolerance tolerance)
Parameters
polygonGeoPolygon3planeGeoPlane3toleranceTolerance
Returns
Remarks
A region lying in the plane satisfies this too: parallelism is about orientation, not about separation. Two regions facing opposite ways are still parallel.
IsParallel(GeoPolygon3, GeoPolygon3)
Checks whether two polygons lie parallel to each other, using the default tolerance.
public static bool IsParallel(GeoPolygon3 polygon1, GeoPolygon3 polygon2)
Parameters
polygon1GeoPolygon3polygon2GeoPolygon3
Returns
IsParallel(GeoPolygon3, GeoPolygon3, Tolerance)
Checks whether two polygons lie parallel to each other, within an angular tolerance.
public static bool IsParallel(GeoPolygon3 polygon1, GeoPolygon3 polygon2, Tolerance tolerance)
Parameters
polygon1GeoPolygon3polygon2GeoPolygon3toleranceTolerance
Returns
IsParallel(GeoFace3, GeoPlane3)
Checks whether a face lies parallel to a plane, using the default tolerance.
public static bool IsParallel(GeoFace3 face, GeoPlane3 plane)
Parameters
Returns
IsParallel(GeoFace3, GeoPlane3, Tolerance)
Checks whether a face lies parallel to a plane, within an angular tolerance.
public static bool IsParallel(GeoFace3 face, GeoPlane3 plane, Tolerance tolerance)