Method TryIntersectWith
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TryIntersectWith(GeoPlane3, out GeoRay3)
Tries to find the line where this plane meets another plane, using the default tolerance.
public bool TryIntersectWith(GeoPlane3 other, out GeoRay3 intersection)
Parameters
Returns
TryIntersectWith(GeoPlane3, out GeoRay3, Tolerance)
Tries to find the line where this plane meets another plane, within a tolerance.
public bool TryIntersectWith(GeoPlane3 other, out GeoRay3 intersection, Tolerance tolerance)
Parameters
Returns
TryIntersectWith(GeoLine3, out GeoPoint3)
Tries to find the point where a segment crosses this plane, using the default tolerance.
public bool TryIntersectWith(GeoLine3 line, out GeoPoint3 intersection)
Parameters
Returns
TryIntersectWith(GeoLine3, out GeoPoint3, Tolerance)
Tries to find the point where a segment crosses this plane, within a tolerance.
public bool TryIntersectWith(GeoLine3 line, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
lineGeoLine3The segment.
intersectionGeoPoint3The crossing point when the method returns true.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoRay3, out GeoPoint3)
Tries to find the point where a ray crosses this plane, using the default tolerance.
public bool TryIntersectWith(GeoRay3 ray, out GeoPoint3 intersection)
Parameters
Returns
TryIntersectWith(GeoRay3, out GeoPoint3, Tolerance)
Tries to find the point where a ray crosses this plane, within a tolerance.
public bool TryIntersectWith(GeoRay3 ray, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
rayGeoRay3The ray.
intersectionGeoPoint3The crossing point when the method returns true.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoArc3, out GeoPoint3[])
Tries to find where an arc crosses this plane, using the default tolerance.
public bool TryIntersectWith(GeoArc3 arc, out GeoPoint3[] intersections)
Parameters
arcGeoArc3The arc.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
TryIntersectWith(GeoArc3, out GeoPoint3[], Tolerance)
Tries to find where an arc crosses this plane, within a tolerance.
public bool TryIntersectWith(GeoArc3 arc, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
arcGeoArc3The arc.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoCircle3, out GeoPoint3[])
Tries to find where a circle crosses this plane, using the default tolerance.
public bool TryIntersectWith(GeoCircle3 circle, out GeoPoint3[] intersections)
Parameters
circleGeoCircle3The circle.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
TryIntersectWith(GeoCircle3, out GeoPoint3[], Tolerance)
Tries to find where a circle crosses this plane, within a tolerance.
public bool TryIntersectWith(GeoCircle3 circle, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
circleGeoCircle3The circle.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoPolyline3, out GeoPoint3[])
Tries to find where this plane crosses a straight chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, out GeoPoint3[]).
public bool TryIntersectWith(GeoPolyline3 polyline, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3intersectionsGeoPoint3[]
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, out GeoPoint3[], Tolerance)
Tries to find where this plane crosses a straight chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoPolyline3 polyline, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3intersectionsGeoPoint3[]toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoTriangle3, out GeoPoint3[])
Tries to find where the edges of a triangle cross this plane: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoTriangle3, out GeoPoint3[]).
public bool TryIntersectWith(GeoTriangle3 triangle, out GeoPoint3[] intersections)
Parameters
triangleGeoTriangle3The triangle.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
Remarks
The floor plane and the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) standing across it cross at (50, 50, 0) and (0, 50, 0); a triangle lying in the floor touches it and crosses it nowhere.
TryIntersectWith(GeoTriangle3, out GeoPoint3[], Tolerance)
Tries to find where the edges of a triangle cross this plane, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoTriangle3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoTriangle3 triangle, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
triangleGeoTriangle3The triangle.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Remarks
The floor plane and the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) standing across it cross at (50, 50, 0) and (0, 50, 0); a triangle lying in the floor touches it and crosses it nowhere.
TryIntersectWith(GeoPolygon3, out GeoPoint3[])
Tries to find where the edges of a polygon cross this plane: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoPolygon3, out GeoPoint3[]).
public bool TryIntersectWith(GeoPolygon3 polygon, out GeoPoint3[] intersections)
Parameters
polygonGeoPolygon3The polygon.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
Remarks
The floor plane and a square 100 by 100 standing upright along y = 50 from z = -50 to 50 cross at (100, 50, 0) and (0, 50, 0); a square lying in the floor touches it and crosses it nowhere.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
TryIntersectWith(GeoPolygon3, out GeoPoint3[], Tolerance)
Tries to find where the edges of a polygon cross this plane, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoPolygon3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoPolygon3 polygon, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polygonGeoPolygon3The polygon.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Remarks
The floor plane and a square 100 by 100 standing upright along y = 50 from z = -50 to 50 cross at (100, 50, 0) and (0, 50, 0); a square lying in the floor touches it and crosses it nowhere.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
TryIntersectWith(GeoFace3, out GeoPoint3[])
Tries to find where the edges of a face cross this plane: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoFace3, out GeoPoint3[]).
public bool TryIntersectWith(GeoFace3 face, out GeoPoint3[] intersections)
Parameters
faceGeoFace3The face, read by its material.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
Remarks
The floor plane and the square 100 by 100 with a hole 40 by 40 in its middle, stood upright along y = 50 from z = -50 to 50, cross at (100, 50, 0) and (0, 50, 0) on the outline and at (70, 50, 0) and (30, 50, 0) on the rim of the hole.
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoFace3, out GeoPoint3[], Tolerance)
Tries to find where the edges of a face cross this plane, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoFace3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoFace3 face, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
faceGeoFace3The face, read by its material.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Remarks
The floor plane and the square 100 by 100 with a hole 40 by 40 in its middle, stood upright along y = 50 from z = -50 to 50, cross at (100, 50, 0) and (0, 50, 0) on the outline and at (70, 50, 0) and (30, 50, 0) on the rim of the hole.
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoObb3, out GeoPoint3[])
Tries to find where this plane cuts the edges of an oriented box: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoObb3, out GeoPoint3[]).
public bool TryIntersectWith(GeoObb3 box, out GeoPoint3[] intersections)
Parameters
boxGeoObb3The oriented box.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
Remarks
The plane z = 50 cuts the four upright edges of a box 100 by 100 by 100 standing on the floor, at height 50; the plane z = 101 misses it.
Exceptions
- ArgumentNullException
Thrown when the box is null.
TryIntersectWith(GeoObb3, out GeoPoint3[], Tolerance)
Tries to find where this plane cuts the edges of an oriented box, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoObb3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoObb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
boxGeoObb3The oriented box.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Remarks
The plane z = 50 cuts the four upright edges of a box 100 by 100 by 100 standing on the floor, at height 50; the plane z = 101 misses it.
Exceptions
- ArgumentNullException
Thrown when the box is null.
TryIntersectWith(GeoAabb3, out GeoPoint3[])
Tries to find where this plane cuts the edges of an axis-aligned box: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoAabb3, out GeoPoint3[]).
public bool TryIntersectWith(GeoAabb3 box, out GeoPoint3[] intersections)
Parameters
boxGeoAabb3The axis-aligned box.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
Remarks
The plane z = 50 cuts the four upright edges of a box 100 by 100 by 100 standing on the floor, at height 50; the plane z = 101 misses it.
TryIntersectWith(GeoAabb3, out GeoPoint3[], Tolerance)
Tries to find where this plane cuts the edges of an axis-aligned box, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoAabb3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoAabb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
boxGeoAabb3The axis-aligned box.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Remarks
The plane z = 50 cuts the four upright edges of a box 100 by 100 by 100 standing on the floor, at height 50; the plane z = 101 misses it.
TryIntersectWith(GeoSpline3, out GeoPoint3[])
Tries to find where this plane meets a spline, using the default tolerance.
public bool TryIntersectWith(GeoSpline3 spline, out GeoPoint3[] intersections)
Parameters
splineGeoSpline3The spline.
intersectionsGeoPoint3[]The points when the method returns true; empty otherwise.
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
TryIntersectWith(GeoSpline3, out GeoPoint3[], Tolerance)
Tries to find where this plane meets a spline, within a tolerance.
public bool TryIntersectWith(GeoSpline3 spline, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
splineGeoSpline3The spline.
intersectionsGeoPoint3[]The points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
TryIntersectWith(GeoXLine3, out GeoPoint3)
Tries to find the point where an infinite line crosses this plane, using the default tolerance.
public bool TryIntersectWith(GeoXLine3 xline, out GeoPoint3 intersection)
Parameters
Returns
TryIntersectWith(GeoXLine3, out GeoPoint3, Tolerance)
Tries to find the point where an infinite line crosses this plane, within a tolerance.
public bool TryIntersectWith(GeoXLine3 xline, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
xlineGeoXLine3The infinite line.
intersectionGeoPoint3The crossing point if successful.
toleranceToleranceThe tolerance.