Method TryGetIntersectionLine
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TryGetIntersectionLine(GeoPlane3, out GeoXLine3)
Tries to find the line where this plane meets another plane, as an infinite line, using the default tolerance.
public bool TryGetIntersectionLine(GeoPlane3 other, out GeoXLine3 intersection)
Parameters
otherGeoPlane3The other plane.
intersectionGeoXLine3The line the two planes share, when the method returns true.
Returns
Remarks
TryIntersectWith(GeoPlane3, out GeoRay3) gives the same line as a ray, which names it and can only stand for it; this gives it as the infinite line it is.
TryGetIntersectionLine(GeoPlane3, out GeoXLine3, Tolerance)
Tries to find the line where this plane meets another plane, as an infinite line, within a tolerance.
public bool TryGetIntersectionLine(GeoPlane3 other, out GeoXLine3 intersection, Tolerance tolerance)
Parameters
otherGeoPlane3The other plane.
intersectionGeoXLine3The line the two planes share, when the method returns true.
toleranceToleranceThe tolerance.
Returns
- bool
true if the planes meet in a line; otherwise, false.
Remarks
Parallel planes are refused whether they are apart, in which case they never meet, or coincident, in which case they meet everywhere. The floor and the wall x = 100 meet in the line along Y through (100, 0, 0), whichever way round they are asked: its origin is the point of the line nearest the world origin, and its direction the cross product of the two normals, so asked of the wall first the line runs the other way.