Table of Contents

Struct GeoXLine3

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Whether an infinite line touches another shape in space.

public readonly struct GeoXLine3 : IEquatable<GeoXLine3>
Implements
Inherited Members
Extension Methods

Remarks

A closed shape is read as filled: a line reaching its material collides with it. The line through (50, 50, 10) along X runs through the box 100 by 100 by 20 with a corner at the origin and collides with it; the line through (-50, 150, 10) along X passes beside it and does not. Two shapes touch where the exact gap between them is no more than the point tolerance, so a line 0.0005 above the top of the box touches it and one 0.002 above does not.

Constructors

GeoXLine3(GeoPoint3, GeoPoint3)

Initializes a new infinite line through two points.

GeoXLine3(GeoPoint3, GeoVector3)

Initializes a new infinite line.

Properties

Direction

Gets the direction of the line, always normalized. The line runs along it and against it from the origin.

IsValid

Gets whether this is a shape a constructor could have made: the origin is a valid point and the direction of unit length.

Origin

Gets a point on the line, from which distances along it are measured.

Methods

ClipTo(GeoAabb3)

Gets the part of this line inside an axis-aligned box, using the default tolerance.

ClipTo(GeoAabb3, Tolerance)

Gets the part of this line inside an axis-aligned box, within a tolerance.

Clone()

Creates a copy of this line.

CollidesWith(GeoAabb3)

Determines whether this infinite line touches an axis-aligned box, using the default tolerance.

CollidesWith(GeoAabb3, Tolerance)

Determines whether this infinite line touches an axis-aligned box, within a tolerance.

CollidesWith(GeoArc3)

Determines whether this infinite line touches an arc, using the default tolerance.

CollidesWith(GeoArc3, Tolerance)

Determines whether this infinite line touches an arc, within a tolerance.

CollidesWith(GeoCircle3)

Determines whether this infinite line touches a circle, using the default tolerance.

CollidesWith(GeoCircle3, Tolerance)

Determines whether this infinite line touches the rim of a circle, within a tolerance.

CollidesWith(GeoEdge3)

Determines whether this infinite line touches an edge, using the default tolerance.

CollidesWith(GeoEdge3, Tolerance)

Determines whether this infinite line touches an edge, within a tolerance.

CollidesWith(GeoEllipse3)

Determines whether this infinite line touches an ellipse, using the default tolerance.

CollidesWith(GeoEllipse3, Tolerance)

Determines whether this infinite line touches the rim of an ellipse, within a tolerance.

CollidesWith(GeoFace3)

Determines whether this infinite line touches a face, using the default tolerance.

CollidesWith(GeoFace3, Tolerance)

Determines whether this infinite line touches a face, within a tolerance.

CollidesWith(GeoLine3)

Determines whether this infinite line touches a line segment, using the default tolerance.

CollidesWith(GeoLine3, Tolerance)

Determines whether this infinite line touches a line segment, within a tolerance.

CollidesWith(GeoObb3)

Determines whether this infinite line touches an oriented box, using the default tolerance.

CollidesWith(GeoObb3, Tolerance)

Determines whether this infinite line touches an oriented box, within a tolerance.

CollidesWith(GeoPlane3)

Determines whether this infinite line touches a plane, using the default tolerance.

CollidesWith(GeoPlane3, Tolerance)

Determines whether this infinite line touches a plane, within a tolerance.

CollidesWith(GeoPolygon3)

Determines whether this infinite line touches a polygon, using the default tolerance.

CollidesWith(GeoPolygon3, Tolerance)

Determines whether this infinite line touches a polygon, within a tolerance.

CollidesWith(GeoPolygonArc3)

Determines whether this infinite line touches a curved loop, using the default tolerance.

CollidesWith(GeoPolygonArc3, Tolerance)

Determines whether this infinite line touches a curved loop, within a tolerance.

CollidesWith(GeoPolyline3)

Determines whether this infinite line touches a polyline, using the default tolerance.

CollidesWith(GeoPolyline3, Tolerance)

Determines whether this infinite line touches a polyline, within a tolerance.

CollidesWith(GeoPolylineArc3)

Determines whether this infinite line touches a curved chain, using the default tolerance.

CollidesWith(GeoPolylineArc3, Tolerance)

Determines whether this infinite line touches a curved chain, within a tolerance.

CollidesWith(GeoRay3)

Determines whether this infinite line touches a ray, using the default tolerance.

CollidesWith(GeoRay3, Tolerance)

Determines whether this infinite line touches a ray, within a tolerance.

CollidesWith(GeoSolid3)

Determines whether this infinite line touches a solid, using the default tolerance.

CollidesWith(GeoSolid3, Tolerance)

Determines whether this infinite line touches a solid, within a tolerance.

CollidesWith(GeoSphere3)

Determines whether this infinite line touches a ball, using the default tolerance.

CollidesWith(GeoSphere3, Tolerance)

Determines whether this infinite line touches a ball, within a tolerance.

CollidesWith(GeoSpline3)

Determines whether this infinite line touches a spline, using the default tolerance.

CollidesWith(GeoSpline3, Tolerance)

Determines whether this infinite line touches a spline, within a tolerance.

CollidesWith(GeoTriangle3)

Determines whether this infinite line touches a triangle, using the default tolerance.

CollidesWith(GeoTriangle3, Tolerance)

Determines whether this infinite line touches a triangle, within a tolerance.

CollidesWith(GeoXLine3)

Determines whether this infinite line touches another infinite line, using the default tolerance.

CollidesWith(GeoXLine3, Tolerance)

Determines whether this infinite line touches another infinite line, within a tolerance.

DistanceTo(GeoAabb3)

Calculates the shortest distance from this infinite line to an axis-aligned box, using the default tolerance.

DistanceTo(GeoAabb3, Tolerance)

Calculates the shortest distance from this infinite line to an axis-aligned box, within a tolerance.

DistanceTo(GeoFace3)

Calculates the shortest distance from this infinite line to a face, using the default tolerance.

DistanceTo(GeoFace3, Tolerance)

Calculates the shortest distance from this infinite line to a face, within a tolerance.

DistanceTo(GeoLine3)

Calculates the shortest distance from this infinite line to a line segment, using the default tolerance.

DistanceTo(GeoLine3, Tolerance)

Calculates the shortest distance from this infinite line to a line segment, within a tolerance.

DistanceTo(GeoObb3)

Calculates the shortest distance from this infinite line to an oriented box, using the default tolerance.

DistanceTo(GeoObb3, Tolerance)

Calculates the shortest distance from this infinite line to an oriented box, within a tolerance.

DistanceTo(GeoPlane3)

Calculates the shortest distance from this infinite line to a plane, using the default tolerance.

DistanceTo(GeoPlane3, Tolerance)

Calculates the shortest distance from this infinite line to a plane, within a tolerance.

DistanceTo(GeoPoint3)

Calculates the shortest distance from this infinite line to a point, using the default tolerance.

DistanceTo(GeoPoint3, Tolerance)

Calculates the shortest distance from this infinite line to a point, within a tolerance.

DistanceTo(GeoPolygon3)

Calculates the shortest distance from this infinite line to a polygon, using the default tolerance.

DistanceTo(GeoPolygon3, Tolerance)

Calculates the shortest distance from this infinite line to a polygon, within a tolerance.

DistanceTo(GeoPolyline3)

Calculates the shortest distance from this infinite line to a polyline, using the default tolerance.

DistanceTo(GeoPolyline3, Tolerance)

Calculates the shortest distance from this infinite line to a polyline, within a tolerance.

DistanceTo(GeoRay3)

Calculates the shortest distance from this infinite line to a ray, using the default tolerance.

DistanceTo(GeoRay3, Tolerance)

Calculates the shortest distance from this infinite line to a ray, within a tolerance.

DistanceTo(GeoSolid3)

Calculates the shortest distance from this infinite line to a solid, using the default tolerance.

DistanceTo(GeoSolid3, Tolerance)

Calculates the shortest distance from this infinite line to a solid, within a tolerance.

DistanceTo(GeoSphere3)

Calculates the shortest distance from this infinite line to a ball, using the default tolerance.

DistanceTo(GeoSphere3, Tolerance)

Calculates the shortest distance from this infinite line to a ball, within a tolerance.

DistanceTo(GeoSpline3)

Calculates the shortest distance from this infinite line to a spline, using the default tolerance.

DistanceTo(GeoSpline3, Tolerance)

Calculates the shortest distance from this infinite line to a spline, within a tolerance.

DistanceTo(GeoTriangle3)

Calculates the shortest distance from this infinite line to a triangle, using the default tolerance.

DistanceTo(GeoTriangle3, Tolerance)

Calculates the shortest distance from this infinite line to a triangle, within a tolerance.

DistanceTo(GeoXLine3)

Calculates the shortest distance from this infinite line to another infinite line, using the default tolerance.

DistanceTo(GeoXLine3, Tolerance)

Calculates the shortest distance from this infinite line to another infinite line, within a tolerance.

Equals(GeoXLine3)

Determines whether another line has exactly the same origin and direction.

Equals(object)

Determines whether the specified object is equal to the current line.

GetClosestPointOnBoundary(GeoPoint3)

Gets the closest point on this line to a target point: the foot of the perpendicular.

GetDistanceAtPoint(GeoPoint3)

Gets the signed distance from the origin to the foot of a point on the line: positive ahead of the origin and negative behind it.

GetHashCode()

Returns the hash code for this instance.

GetIntersections(GeoAabb3)

Gets the points where this infinite line crosses an axis-aligned box, using the default tolerance.

GetIntersections(GeoAabb3, Tolerance)

Gets the points where this infinite line crosses an axis-aligned box, within a tolerance.

GetIntersections(GeoArc3)

Gets the points where this infinite line crosses an arc, using the default tolerance.

GetIntersections(GeoArc3, Tolerance)

Gets the points where this infinite line crosses an arc, within a tolerance.

GetIntersections(GeoCircle3)

Gets the points where this infinite line crosses a circle, using the default tolerance.

GetIntersections(GeoCircle3, Tolerance)

Gets the points where this infinite line crosses the rim of a circle, within a tolerance.

GetIntersections(GeoEdge3)

Gets the points where this infinite line crosses an edge, using the default tolerance.

GetIntersections(GeoEdge3, Tolerance)

Gets the points where this infinite line crosses an edge, within a tolerance.

GetIntersections(GeoEllipse3)

Gets the points where this infinite line crosses an ellipse, using the default tolerance.

GetIntersections(GeoEllipse3, Tolerance)

Gets the points where this infinite line crosses the rim of an ellipse, within a tolerance.

GetIntersections(GeoFace3)

Gets the point where this infinite line crosses a face, using the default tolerance.

GetIntersections(GeoFace3, Tolerance)

Gets the point where this infinite line crosses a face, within a tolerance.

GetIntersections(GeoLine3)

Gets the point where this infinite line crosses a line segment, using the default tolerance.

GetIntersections(GeoLine3, Tolerance)

Gets the point where this infinite line crosses a line segment, within a tolerance.

GetIntersections(GeoObb3)

Gets the points where this infinite line crosses an oriented box, using the default tolerance.

GetIntersections(GeoObb3, Tolerance)

Gets the points where this infinite line crosses an oriented box, within a tolerance.

GetIntersections(GeoPlane3)

Gets the point where this infinite line crosses a plane, using the default tolerance.

GetIntersections(GeoPlane3, Tolerance)

Gets the point where this infinite line crosses a plane, within a tolerance.

GetIntersections(GeoPolygon3)

Gets the point where this infinite line crosses a polygon, using the default tolerance.

GetIntersections(GeoPolygon3, Tolerance)

Gets the point where this infinite line crosses a polygon, within a tolerance.

GetIntersections(GeoPolygonArc3)

Gets the points where this infinite line crosses a curved loop, using the default tolerance.

GetIntersections(GeoPolygonArc3, Tolerance)

Gets the points where this infinite line crosses a curved loop, within a tolerance.

GetIntersections(GeoPolyline3)

Gets the points where this infinite line crosses a polyline, using the default tolerance.

GetIntersections(GeoPolyline3, Tolerance)

Gets the points where this infinite line crosses a polyline, within a tolerance.

GetIntersections(GeoPolylineArc3)

Gets the points where this infinite line crosses a curved chain, using the default tolerance.

GetIntersections(GeoPolylineArc3, Tolerance)

Gets the points where this infinite line crosses a curved chain, within a tolerance.

GetIntersections(GeoRay3)

Gets the point where this infinite line crosses a ray, using the default tolerance.

GetIntersections(GeoRay3, Tolerance)

Gets the point where this infinite line crosses a ray, within a tolerance.

GetIntersections(GeoSolid3)

Gets the points where this infinite line crosses the surface of a solid, using the default tolerance.

GetIntersections(GeoSolid3, Tolerance)

Gets the points where this infinite line crosses the surface of a solid, within a tolerance.

GetIntersections(GeoSphere3)

Gets the points where this infinite line crosses the surface of a ball, using the default tolerance.

GetIntersections(GeoSphere3, Tolerance)

Gets the points where this infinite line crosses the surface of a ball, within a tolerance.

GetIntersections(GeoSpline3)

Gets the points where this infinite line meets a spline, using the default tolerance.

GetIntersections(GeoSpline3, Tolerance)

Gets the points where this infinite line meets a spline, within a tolerance.

GetIntersections(GeoTriangle3)

Gets the point where this infinite line crosses a triangle, using the default tolerance.

GetIntersections(GeoTriangle3, Tolerance)

Gets the point where this infinite line crosses a triangle, within a tolerance.

GetIntersections(GeoXLine3)

Gets the point where this infinite line crosses another infinite line, using the default tolerance.

GetIntersections(GeoXLine3, Tolerance)

Gets the point where this infinite line crosses another infinite line, within a tolerance.

GetPointAtDistance(double)

Gets the point at a signed distance measured from the origin along the line direction.

GetShortestLineTo(GeoFace3)

Gets the shortest segment leaving this infinite line and landing on a face, using the default tolerance.

GetShortestLineTo(GeoFace3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on a face, within a tolerance.

GetShortestLineTo(GeoLine3)

Gets the shortest segment leaving this infinite line and landing on a line segment, using the default tolerance.

GetShortestLineTo(GeoLine3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on a line segment, within a tolerance.

GetShortestLineTo(GeoPlane3)

Gets the shortest segment leaving this infinite line and landing on a plane, using the default tolerance.

GetShortestLineTo(GeoPlane3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on a plane, within a tolerance.

GetShortestLineTo(GeoPoint3)

Gets the shortest segment leaving this infinite line and landing on a point, using the default tolerance.

GetShortestLineTo(GeoPoint3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on a point, within a tolerance.

GetShortestLineTo(GeoPolygon3)

Gets the shortest segment leaving this infinite line and landing on a polygon, using the default tolerance.

GetShortestLineTo(GeoPolygon3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on a polygon, within a tolerance.

GetShortestLineTo(GeoPolyline3)

Gets the shortest segment leaving this infinite line and landing on a polyline, using the default tolerance.

GetShortestLineTo(GeoPolyline3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on a polyline, within a tolerance.

GetShortestLineTo(GeoRay3)

Gets the shortest segment leaving this infinite line and landing on a ray, using the default tolerance.

GetShortestLineTo(GeoRay3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on a ray, within a tolerance.

GetShortestLineTo(GeoSolid3)

Gets the shortest segment leaving this infinite line and landing on a solid, using the default tolerance.

GetShortestLineTo(GeoSolid3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on a solid, within a tolerance.

GetShortestLineTo(GeoSphere3)

Gets the shortest segment leaving this infinite line and landing on a ball, using the default tolerance.

GetShortestLineTo(GeoSphere3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on a ball, within a tolerance.

GetShortestLineTo(GeoSpline3)

Gets the shortest segment leaving this infinite line and landing on a spline, using the default tolerance.

GetShortestLineTo(GeoSpline3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on a spline, within a tolerance.

GetShortestLineTo(GeoTriangle3)

Gets the shortest segment leaving this infinite line and landing on a triangle, using the default tolerance.

GetShortestLineTo(GeoTriangle3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on a triangle, within a tolerance.

GetShortestLineTo(GeoXLine3)

Gets the shortest segment leaving this infinite line and landing on another infinite line, using the default tolerance.

GetShortestLineTo(GeoXLine3, Tolerance)

Gets the shortest segment leaving this infinite line and landing on another infinite line, within a tolerance.

IsEqualTo(GeoXLine3)

Compares whether this line equals another line using the default tolerance.

IsEqualTo(GeoXLine3, Tolerance)

Compares whether this line equals another line within a tolerance.

IsParallelTo(GeoLine3)

Checks whether this line is parallel to a line segment using the default tolerance.

IsParallelTo(GeoLine3, Tolerance)

Checks whether this line is parallel to a line segment within a tolerance.

IsParallelTo(GeoPlane3)

Checks whether this line runs parallel to a plane using the default tolerance.

IsParallelTo(GeoPlane3, Tolerance)

Checks whether this line runs parallel to a plane within a tolerance.

IsParallelTo(GeoXLine3)

Checks whether this line is parallel to another using the default tolerance.

IsParallelTo(GeoXLine3, Tolerance)

Checks whether this line is parallel to another within a tolerance.

IsPointOn(GeoPoint3)

Checks whether a point lies on this line using the default tolerance.

IsPointOn(GeoPoint3, Tolerance)

Checks whether a point lies on this line within a tolerance.

IsSameLineAs(GeoXLine3)

Checks whether another line is the same infinite line as this one, using the default tolerance.

IsSameLineAs(GeoXLine3, Tolerance)

Checks whether another line is the same infinite line as this one, whatever its origin and its direction, within a tolerance.

Locate(GeoPoint3)

Says where a point lies with respect to this line.

Locate(GeoPoint3, Tolerance)

Says where a point lies with respect to this line, within a tolerance.

ProjectToXLine2(GeoCoordinateSystem3)

Lays this line out in a frame: its origin dropped onto the plane of that frame and its direction laid along it.

Reverse()

Gets the same line running the opposite way.

ToLine(double, double)

Gets the line segment covering the line between two signed distances from its origin.

ToRay()

Gets the ray that starts at the origin of this line and runs along its direction: the half of the line ahead of the origin.

ToString()

Returns a string that represents the current line.

TransformBy(GeoTransform3)

Applies a transformation to this line.

Translate(GeoVector3)

Moves the line by a vector.

TryIntersectWith(GeoArc3, out GeoPoint3[])

Tries to find where this infinite line crosses an arc, using the default tolerance.

TryIntersectWith(GeoArc3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses an arc, within a tolerance.

TryIntersectWith(GeoCircle3, out GeoPoint3[])

Tries to find where this infinite line crosses a circle, using the default tolerance.

TryIntersectWith(GeoCircle3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses the rim of a circle, within a tolerance.

TryIntersectWith(GeoEdge3, out GeoPoint3[])

Tries to find where this infinite line crosses an edge, using the default tolerance.

TryIntersectWith(GeoEdge3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses an edge, within a tolerance.

TryIntersectWith(GeoEllipse3, out GeoPoint3[])

Tries to find where this infinite line crosses an ellipse, using the default tolerance.

TryIntersectWith(GeoEllipse3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses the rim of an ellipse, within a tolerance.

TryIntersectWith(GeoFace3, out GeoPoint3)

Tries to find the point where this infinite line crosses a face, using the default tolerance.

TryIntersectWith(GeoFace3, out GeoPoint3, Tolerance)

Tries to find the point where this infinite line crosses a face, within a tolerance.

TryIntersectWith(GeoLine3, out GeoPoint3[])

Tries to find where this infinite line crosses a line segment, using the default tolerance.

TryIntersectWith(GeoLine3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses a line segment, within a tolerance.

TryIntersectWith(GeoPlane3, out GeoPoint3)

Tries to find the point where this infinite line crosses a plane, using the default tolerance.

TryIntersectWith(GeoPlane3, out GeoPoint3, Tolerance)

Tries to find the point where this infinite line crosses a plane, within a tolerance.

TryIntersectWith(GeoPolygon3, out GeoPoint3)

Tries to find the point where this infinite line crosses a polygon, using the default tolerance.

TryIntersectWith(GeoPolygon3, out GeoPoint3, Tolerance)

Tries to find the point where this infinite line crosses a polygon, within a tolerance.

TryIntersectWith(GeoPolygonArc3, out GeoPoint3[])

Tries to find where this infinite line crosses a curved loop, using the default tolerance.

TryIntersectWith(GeoPolygonArc3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses a curved loop, within a tolerance.

TryIntersectWith(GeoPolyline3, out GeoPoint3[])

Tries to find where this infinite line crosses a polyline, using the default tolerance.

TryIntersectWith(GeoPolyline3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses a polyline, within a tolerance.

TryIntersectWith(GeoPolylineArc3, out GeoPoint3[])

Tries to find where this infinite line crosses a curved chain, using the default tolerance.

TryIntersectWith(GeoPolylineArc3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses a curved chain, within a tolerance.

TryIntersectWith(GeoRay3, out GeoPoint3[])

Tries to find where this infinite line crosses a ray, using the default tolerance.

TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses a ray, within a tolerance.

TryIntersectWith(GeoSphere3, out GeoPoint3[])

Tries to find where this infinite line crosses the surface of a ball, using the default tolerance.

TryIntersectWith(GeoSphere3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses the surface of a ball, within a tolerance.

TryIntersectWith(GeoSpline3, out GeoPoint3[])

Tries to find where this infinite line meets a spline, using the default tolerance.

TryIntersectWith(GeoSpline3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line meets a spline, within a tolerance.

TryIntersectWith(GeoTriangle3, out GeoPoint3)

Tries to find the point where this infinite line crosses a triangle, using the default tolerance.

TryIntersectWith(GeoTriangle3, out GeoPoint3, Tolerance)

Tries to find the point where this infinite line crosses a triangle, within a tolerance.

TryIntersectWith(GeoXLine3, out GeoPoint3[])

Tries to find where this infinite line crosses another infinite line, using the default tolerance.

TryIntersectWith(GeoXLine3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses another infinite line, within a tolerance.

Operators

operator ==(GeoXLine3, GeoXLine3)

Checks if two lines have exactly the same origin and direction.

operator !=(GeoXLine3, GeoXLine3)

Checks if two lines differ in origin or direction.