Struct GeoXLine2
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Whether an infinite line touches another shape.
public readonly struct GeoXLine2 : IEquatable<GeoXLine2>
- Implements
- Inherited Members
Remarks
A closed shape is read as filled: a line reaching its material collides with it. The line through (50, 50) along X runs through the square 100 by 100 with a corner at the origin and collides with it; the line through (-50, 150) along X passes above it and does not.
Constructors
- GeoXLine2(GeoPoint2, GeoPoint2)
Initializes a new infinite line through two points.
- GeoXLine2(GeoPoint2, GeoVector2)
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(GeoRectangle2)
Gets the part of this line inside a rectangle, using the default tolerance.
- ClipTo(GeoRectangle2, Tolerance)
Gets the part of this line inside a rectangle, within a tolerance.
- Clone()
Creates a copy of this line.
- CollidesWith(GeoArc2)
Determines whether this infinite line touches an arc, using the default tolerance.
- CollidesWith(GeoArc2, Tolerance)
Determines whether this infinite line touches an arc, within a tolerance.
- CollidesWith(GeoCircle2)
Determines whether this infinite line touches a circle, using the default tolerance.
- CollidesWith(GeoCircle2, Tolerance)
Determines whether this infinite line touches a circle, within a tolerance.
- CollidesWith(GeoEdge2)
Determines whether this infinite line touches an edge, using the default tolerance.
- CollidesWith(GeoEdge2, Tolerance)
Determines whether this infinite line touches an edge, within a tolerance.
- CollidesWith(GeoEllipse2)
Determines whether this infinite line touches an ellipse, using the default tolerance.
- CollidesWith(GeoEllipse2, Tolerance)
Determines whether this infinite line touches an ellipse, within a tolerance.
- CollidesWith(GeoFace2)
Determines whether this infinite line touches a face, using the default tolerance.
- CollidesWith(GeoFace2, Tolerance)
Determines whether this infinite line touches a face, within a tolerance.
- CollidesWith(GeoLine2)
Determines whether this infinite line touches a line segment, using the default tolerance.
- CollidesWith(GeoLine2, Tolerance)
Determines whether this infinite line touches a line segment, within a tolerance.
- CollidesWith(GeoPolygon2)
Determines whether this infinite line touches a polygon, using the default tolerance.
- CollidesWith(GeoPolygon2, Tolerance)
Determines whether this infinite line touches a polygon, within a tolerance.
- CollidesWith(GeoPolygonArc2)
Determines whether this infinite line touches a curved loop, using the default tolerance.
- CollidesWith(GeoPolygonArc2, Tolerance)
Determines whether this infinite line touches a curved loop, within a tolerance.
- CollidesWith(GeoPolyline2)
Determines whether this infinite line touches a polyline, using the default tolerance.
- CollidesWith(GeoPolyline2, Tolerance)
Determines whether this infinite line touches a polyline, within a tolerance.
- CollidesWith(GeoPolylineArc2)
Determines whether this infinite line touches a curved chain, using the default tolerance.
- CollidesWith(GeoPolylineArc2, Tolerance)
Determines whether this infinite line touches a curved chain, within a tolerance.
- CollidesWith(GeoRay2)
Determines whether this infinite line touches a ray, using the default tolerance.
- CollidesWith(GeoRay2, Tolerance)
Determines whether this infinite line touches a ray, within a tolerance.
- CollidesWith(GeoRectangle2)
Determines whether this infinite line touches a rectangle, using the default tolerance.
- CollidesWith(GeoRectangle2, Tolerance)
Determines whether this infinite line touches a rectangle, within a tolerance.
- CollidesWith(GeoSpline2)
Determines whether this infinite line touches a spline, using the default tolerance.
- CollidesWith(GeoSpline2, Tolerance)
Determines whether this infinite line touches a spline, within a tolerance.
- CollidesWith(GeoTriangle2)
Determines whether this infinite line touches a triangle, using the default tolerance.
- CollidesWith(GeoTriangle2, Tolerance)
Determines whether this infinite line touches a triangle, within a tolerance.
- CollidesWith(GeoXLine2)
Determines whether this infinite line touches another infinite line, using the default tolerance.
- CollidesWith(GeoXLine2, Tolerance)
Determines whether this infinite line touches another infinite line, within a tolerance.
- DistanceTo(GeoArc2)
Calculates the shortest distance from this infinite line to an arc, using the default tolerance.
- DistanceTo(GeoArc2, Tolerance)
Calculates the shortest distance from this infinite line to an arc, within a tolerance.
- DistanceTo(GeoCircle2)
Calculates the shortest distance from this infinite line to a circle, using the default tolerance.
- DistanceTo(GeoCircle2, Tolerance)
Calculates the shortest distance from this infinite line to a circle, within a tolerance.
- DistanceTo(GeoEdge2)
Calculates the shortest distance from this infinite line to an edge, using the default tolerance.
- DistanceTo(GeoEdge2, Tolerance)
Calculates the shortest distance from this infinite line to an edge, within a tolerance.
- DistanceTo(GeoEllipse2)
Calculates the shortest distance from this infinite line to an ellipse, using the default tolerance.
- DistanceTo(GeoEllipse2, Tolerance)
Calculates the shortest distance from this infinite line to an ellipse, within a tolerance.
- DistanceTo(GeoFace2)
Calculates the shortest distance from this infinite line to a face, using the default tolerance.
- DistanceTo(GeoFace2, Tolerance)
Calculates the shortest distance from this infinite line to a face, within a tolerance.
- DistanceTo(GeoLine2)
Calculates the shortest distance from this infinite line to a line segment, using the default tolerance.
- DistanceTo(GeoLine2, Tolerance)
Calculates the shortest distance from this infinite line to a line segment, within a tolerance.
- DistanceTo(GeoPoint2)
Calculates the shortest distance from this infinite line to a point, using the default tolerance.
- DistanceTo(GeoPoint2, Tolerance)
Calculates the shortest distance from this infinite line to a point, within a tolerance.
- DistanceTo(GeoPolygon2)
Calculates the shortest distance from this infinite line to a polygon, using the default tolerance.
- DistanceTo(GeoPolygon2, Tolerance)
Calculates the shortest distance from this infinite line to a polygon, within a tolerance.
- DistanceTo(GeoPolygonArc2)
Calculates the shortest distance from this infinite line to a curved loop, using the default tolerance.
- DistanceTo(GeoPolygonArc2, Tolerance)
Calculates the shortest distance from this infinite line to a curved loop, within a tolerance.
- DistanceTo(GeoPolyline2)
Calculates the shortest distance from this infinite line to a polyline, using the default tolerance.
- DistanceTo(GeoPolyline2, Tolerance)
Calculates the shortest distance from this infinite line to a polyline, within a tolerance.
- DistanceTo(GeoPolylineArc2)
Calculates the shortest distance from this infinite line to a curved chain, using the default tolerance.
- DistanceTo(GeoPolylineArc2, Tolerance)
Calculates the shortest distance from this infinite line to a curved chain, within a tolerance.
- DistanceTo(GeoRay2)
Calculates the shortest distance from this infinite line to a ray, using the default tolerance.
- DistanceTo(GeoRay2, Tolerance)
Calculates the shortest distance from this infinite line to a ray, within a tolerance.
- DistanceTo(GeoRectangle2)
Calculates the shortest distance from this infinite line to a rectangle, using the default tolerance.
- DistanceTo(GeoRectangle2, Tolerance)
Calculates the shortest distance from this infinite line to a rectangle, within a tolerance.
- DistanceTo(GeoSpline2)
Calculates the shortest distance from this infinite line to a spline, using the default tolerance.
- DistanceTo(GeoSpline2, Tolerance)
Calculates the shortest distance from this infinite line to a spline, within a tolerance.
- DistanceTo(GeoTriangle2)
Calculates the shortest distance from this infinite line to a triangle, using the default tolerance.
- DistanceTo(GeoTriangle2, Tolerance)
Calculates the shortest distance from this infinite line to a triangle, within a tolerance.
- DistanceTo(GeoXLine2)
Calculates the shortest distance from this infinite line to another infinite line, using the default tolerance.
- DistanceTo(GeoXLine2, Tolerance)
Calculates the shortest distance from this infinite line to another infinite line, within a tolerance.
- Equals(GeoXLine2)
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(GeoPoint2)
Gets the closest point on this line to a target point: the foot of the perpendicular.
- GetDistanceAtPoint(GeoPoint2)
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(GeoArc2)
Gets the points where this infinite line crosses an arc, using the default tolerance.
- GetIntersections(GeoArc2, Tolerance)
Gets the points where this infinite line crosses an arc, within a tolerance.
- GetIntersections(GeoCircle2)
Gets the points where this infinite line crosses a circle, using the default tolerance.
- GetIntersections(GeoCircle2, Tolerance)
Gets the points where this infinite line crosses a circle, within a tolerance.
- GetIntersections(GeoEdge2)
Gets the points where this infinite line crosses an edge, using the default tolerance.
- GetIntersections(GeoEdge2, Tolerance)
Gets the points where this infinite line crosses an edge, within a tolerance.
- GetIntersections(GeoEllipse2)
Gets the points where this infinite line crosses an ellipse, using the default tolerance.
- GetIntersections(GeoEllipse2, Tolerance)
Gets the points where this infinite line crosses an ellipse, within a tolerance.
- GetIntersections(GeoFace2)
Gets the points where this infinite line crosses a face, using the default tolerance.
- GetIntersections(GeoFace2, Tolerance)
Gets the points where this infinite line crosses a face, within a tolerance.
- GetIntersections(GeoPolygon2)
Gets the points where this infinite line crosses a polygon, using the default tolerance.
- GetIntersections(GeoPolygon2, Tolerance)
Gets the points where this infinite line crosses a polygon, within a tolerance.
- GetIntersections(GeoPolygonArc2)
Gets the points where this infinite line crosses a curved loop, using the default tolerance.
- GetIntersections(GeoPolygonArc2, Tolerance)
Gets the points where this infinite line crosses a curved loop, within a tolerance.
- GetIntersections(GeoPolyline2)
Gets the points where this infinite line crosses a polyline, using the default tolerance.
- GetIntersections(GeoPolyline2, Tolerance)
Gets the points where this infinite line crosses a polyline, within a tolerance.
- GetIntersections(GeoPolylineArc2)
Gets the points where this infinite line crosses a curved chain, using the default tolerance.
- GetIntersections(GeoPolylineArc2, Tolerance)
Gets the points where this infinite line crosses a curved chain, within a tolerance.
- GetIntersections(GeoRectangle2)
Gets the points where this infinite line crosses a rectangle, using the default tolerance.
- GetIntersections(GeoRectangle2, Tolerance)
Gets the points where this infinite line crosses a rectangle, within a tolerance.
- GetIntersections(GeoSpline2)
Gets the points where this infinite line crosses a spline, using the default tolerance.
- GetIntersections(GeoSpline2, Tolerance)
Gets the points where this infinite line crosses a spline, within a tolerance.
- GetIntersections(GeoTriangle2)
Gets the points where this infinite line crosses a triangle, using the default tolerance.
- GetIntersections(GeoTriangle2, Tolerance)
Gets the points where this infinite line crosses a triangle, within a tolerance.
- GetPerpendicular(GeoPoint2)
Gets the line through a point square to this one.
- GetPointAtDistance(double)
Gets the point at a signed distance measured from the origin along the line direction.
- GetShortestLineTo(GeoArc2)
Gets the shortest segment leaving this infinite line and landing on an arc, using the default tolerance.
- GetShortestLineTo(GeoArc2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on an arc, within a tolerance.
- GetShortestLineTo(GeoCircle2)
Gets the shortest segment leaving this infinite line and landing on a circle, using the default tolerance.
- GetShortestLineTo(GeoCircle2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a circle, within a tolerance.
- GetShortestLineTo(GeoEdge2)
Gets the shortest segment leaving this infinite line and landing on an edge, using the default tolerance.
- GetShortestLineTo(GeoEdge2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on an edge, within a tolerance.
- GetShortestLineTo(GeoEllipse2)
Gets the shortest segment leaving this infinite line and landing on an ellipse, using the default tolerance.
- GetShortestLineTo(GeoEllipse2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on an ellipse, within a tolerance.
- GetShortestLineTo(GeoFace2)
Gets the shortest segment leaving this infinite line and landing on a face, using the default tolerance.
- GetShortestLineTo(GeoFace2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a face, within a tolerance.
- GetShortestLineTo(GeoLine2)
Gets the shortest segment leaving this infinite line and landing on a line segment, using the default tolerance.
- GetShortestLineTo(GeoLine2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a line segment, within a tolerance.
- GetShortestLineTo(GeoPoint2)
Gets the shortest segment leaving this infinite line and landing on a point, using the default tolerance.
- GetShortestLineTo(GeoPoint2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a point, within a tolerance.
- GetShortestLineTo(GeoPolygon2)
Gets the shortest segment leaving this infinite line and landing on a polygon, using the default tolerance.
- GetShortestLineTo(GeoPolygon2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a polygon, within a tolerance.
- GetShortestLineTo(GeoPolygonArc2)
Gets the shortest segment leaving this infinite line and landing on a curved loop, using the default tolerance.
- GetShortestLineTo(GeoPolygonArc2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a curved loop, within a tolerance.
- GetShortestLineTo(GeoPolyline2)
Gets the shortest segment leaving this infinite line and landing on a polyline, using the default tolerance.
- GetShortestLineTo(GeoPolyline2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a polyline, within a tolerance.
- GetShortestLineTo(GeoPolylineArc2)
Gets the shortest segment leaving this infinite line and landing on a curved chain, using the default tolerance.
- GetShortestLineTo(GeoPolylineArc2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a curved chain, within a tolerance.
- GetShortestLineTo(GeoRay2)
Gets the shortest segment leaving this infinite line and landing on a ray, using the default tolerance.
- GetShortestLineTo(GeoRay2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a ray, within a tolerance.
- GetShortestLineTo(GeoRectangle2)
Gets the shortest segment leaving this infinite line and landing on a rectangle, using the default tolerance.
- GetShortestLineTo(GeoRectangle2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a rectangle, within a tolerance.
- GetShortestLineTo(GeoSpline2)
Gets the shortest segment leaving this infinite line and landing on a spline, using the default tolerance.
- GetShortestLineTo(GeoSpline2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a spline, within a tolerance.
- GetShortestLineTo(GeoTriangle2)
Gets the shortest segment leaving this infinite line and landing on a triangle, using the default tolerance.
- GetShortestLineTo(GeoTriangle2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on a triangle, within a tolerance.
- GetShortestLineTo(GeoXLine2)
Gets the shortest segment leaving this infinite line and landing on another infinite line, using the default tolerance.
- GetShortestLineTo(GeoXLine2, Tolerance)
Gets the shortest segment leaving this infinite line and landing on another infinite line, within a tolerance.
- GetSide(GeoPoint2)
Says which side of this line a point lies on, using the default tolerance.
- GetSide(GeoPoint2, Tolerance)
Says which side of this line a point lies on, seen looking along its direction, within a tolerance.
- IsEqualTo(GeoXLine2)
Compares whether this line equals another line using the default tolerance.
- IsEqualTo(GeoXLine2, Tolerance)
Compares whether this line equals another line within a tolerance.
- IsParallelTo(GeoLine2)
Checks whether this line is parallel to a line segment using the default tolerance.
- IsParallelTo(GeoLine2, Tolerance)
Checks whether this line is parallel to a line segment within a tolerance.
- IsParallelTo(GeoXLine2)
Checks whether this line is parallel to another using the default tolerance.
- IsParallelTo(GeoXLine2, Tolerance)
Checks whether this line is parallel to another within a tolerance.
- IsPointOn(GeoPoint2)
Checks whether a point lies on this line using the default tolerance.
- IsPointOn(GeoPoint2, Tolerance)
Checks whether a point lies on this line within a tolerance.
- IsSameLineAs(GeoXLine2)
Checks whether another line is the same infinite line as this one, using the default tolerance.
- IsSameLineAs(GeoXLine2, Tolerance)
Checks whether another line is the same infinite line as this one, whatever its origin and its direction, within a tolerance.
- Locate(GeoPoint2)
Says where a point lies with respect to this line.
- Locate(GeoPoint2, Tolerance)
Says where a point lies with respect to this line, within a tolerance.
- Offset(double)
Gets the line parallel to this one at a distance, to its left.
- 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.
- ToXLine3(GeoCoordinateSystem3)
Puts this line of the plane back into space, on the plane of a frame.
- TransformBy(GeoTransform2)
Applies a transformation to this line.
- Translate(GeoVector2)
Moves the line by a vector.
- TryIntersectWith(GeoArc2, out GeoPoint2[])
Tries to find where this infinite line crosses an arc, using the default tolerance.
- TryIntersectWith(GeoArc2, out GeoPoint2[], Tolerance)
Tries to find where this infinite line crosses an arc, within a tolerance.
- TryIntersectWith(GeoCircle2, out GeoPoint2[])
Tries to find where this infinite line crosses a circle, using the default tolerance.
- TryIntersectWith(GeoCircle2, out GeoPoint2[], Tolerance)
Tries to find where this infinite line crosses a circle, within a tolerance.
- TryIntersectWith(GeoEllipse2, out GeoPoint2[])
Tries to find where this infinite line crosses an ellipse, using the default tolerance.
- TryIntersectWith(GeoEllipse2, out GeoPoint2[], Tolerance)
Tries to find where this infinite line crosses an ellipse, within a tolerance.
- TryIntersectWith(GeoFace2, out GeoPoint2[])
Tries to find where this infinite line crosses a face, using the default tolerance.
- TryIntersectWith(GeoFace2, out GeoPoint2[], Tolerance)
Tries to find where this infinite line crosses a face, within a tolerance.
- TryIntersectWith(GeoLine2, out GeoPoint2)
Tries to find where this infinite line crosses a line segment, using the default tolerance.
- TryIntersectWith(GeoLine2, out GeoPoint2, Tolerance)
Tries to find where this infinite line crosses a line segment, within a tolerance.
- TryIntersectWith(GeoPolygonArc2, out GeoPoint2[])
Tries to find where this infinite line crosses a curved loop, using the default tolerance.
- TryIntersectWith(GeoPolygonArc2, out GeoPoint2[], Tolerance)
Tries to find where this infinite line crosses a curved loop, within a tolerance.
- TryIntersectWith(GeoPolyline2, out GeoPoint2[])
Tries to find where this infinite line crosses a polyline, using the default tolerance.
- TryIntersectWith(GeoPolyline2, out GeoPoint2[], Tolerance)
Tries to find where this infinite line crosses a polyline, within a tolerance.
- TryIntersectWith(GeoPolylineArc2, out GeoPoint2[])
Tries to find where this infinite line crosses a curved chain, using the default tolerance.
- TryIntersectWith(GeoPolylineArc2, out GeoPoint2[], Tolerance)
Tries to find where this infinite line crosses a curved chain, within a tolerance.
- TryIntersectWith(GeoRay2, out GeoPoint2)
Tries to find where this infinite line crosses a ray, using the default tolerance.
- TryIntersectWith(GeoRay2, out GeoPoint2, Tolerance)
Tries to find where this infinite line crosses a ray, within a tolerance.
- TryIntersectWith(GeoRectangle2, out GeoPoint2[])
Tries to find where this infinite line crosses a rectangle, using the default tolerance.
- TryIntersectWith(GeoRectangle2, out GeoPoint2[], Tolerance)
Tries to find where this infinite line crosses a rectangle, within a tolerance.
- TryIntersectWith(GeoSpline2, out GeoPoint2[])
Tries to find where this infinite line crosses a spline, using the default tolerance.
- TryIntersectWith(GeoSpline2, out GeoPoint2[], Tolerance)
Tries to find where this infinite line crosses a spline, within a tolerance.
- TryIntersectWith(GeoTriangle2, out GeoPoint2[])
Tries to find where this infinite line crosses a triangle, using the default tolerance.
- TryIntersectWith(GeoTriangle2, out GeoPoint2[], Tolerance)
Tries to find where this infinite line crosses a triangle, within a tolerance.
- TryIntersectWith(GeoXLine2, out GeoPoint2)
Tries to find where this infinite line crosses another infinite line, using the default tolerance.
- TryIntersectWith(GeoXLine2, out GeoPoint2, Tolerance)
Tries to find where this infinite line crosses another infinite line, within a tolerance.
Operators
- operator ==(GeoXLine2, GeoXLine2)
Checks if two lines have exactly the same origin and direction.
- operator !=(GeoXLine2, GeoXLine2)
Checks if two lines differ in origin or direction.