Table of Contents

Struct GeoRay3

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Whether a ray touches another shape.

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

Constructors

GeoRay3(GeoPoint3, GeoPoint3)

Initializes a new ray running from one point through another.

GeoRay3(GeoPoint3, GeoVector3)

Initializes a new ray.

Properties

Direction

Gets the direction of the ray, always normalized.

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 the origin point of the ray.

Methods

Clone()

Creates a copy of this ray.

CollidesWith(GeoAabb3)

Checks whether this ray starts inside an axis-aligned box or runs into it, using the default tolerance.

CollidesWith(GeoAabb3, Tolerance)

Checks whether this ray starts inside an axis-aligned box or runs into it, within a tolerance.

CollidesWith(GeoArc3)

Checks whether this ray touches an arc, using the default tolerance.

CollidesWith(GeoArc3, Tolerance)

Checks whether this ray touches an arc, within a tolerance.

CollidesWith(GeoCircle3)

Checks whether this ray touches a circle, using the default tolerance.

CollidesWith(GeoCircle3, Tolerance)

Checks whether this ray touches a circle, within a tolerance.

CollidesWith(GeoEdge3)

Checks whether this ray touches an edge: the same answer as CollidesWith(GeoRay3).

CollidesWith(GeoEdge3, Tolerance)

Checks whether this ray touches an edge, within a tolerance: the same answer as CollidesWith(GeoRay3, Tolerance).

CollidesWith(GeoFace3)

Checks whether this ray runs into a face, using the default tolerance.

CollidesWith(GeoFace3, Tolerance)

Checks whether this ray runs into a face, within a tolerance.

CollidesWith(GeoLine3)

Determines whether this ray touches a segment.

CollidesWith(GeoLine3, Tolerance)

Determines whether this ray touches a segment, within a tolerance.

CollidesWith(GeoObb3)

Checks whether this ray starts inside an oriented box or runs into it, using the default tolerance.

CollidesWith(GeoObb3, Tolerance)

Checks whether this ray starts inside an oriented box or runs into it, within a tolerance.

CollidesWith(GeoPlane3)

Checks whether this ray touches a plane: the same answer as CollidesWith(GeoRay3, GeoPlane3).

CollidesWith(GeoPlane3, Tolerance)

Checks whether this ray touches a plane, within a tolerance: the same answer as CollidesWith(GeoRay3, GeoPlane3, Tolerance).

CollidesWith(GeoPolygon3)

Checks whether this ray runs into a polygon, using the default tolerance.

CollidesWith(GeoPolygon3, Tolerance)

Checks whether this ray runs into a polygon, within a tolerance.

CollidesWith(GeoPolygonArc3)

Checks whether this ray touches a curved loop: the same answer as CollidesWith(GeoRay3).

CollidesWith(GeoPolygonArc3, Tolerance)

Checks whether this ray touches a curved loop, within a tolerance: the same answer as CollidesWith(GeoRay3, Tolerance).

CollidesWith(GeoPolyline3)

Checks whether this ray touches a straight chain: the same answer as CollidesWith(GeoRay3).

CollidesWith(GeoPolyline3, Tolerance)

Checks whether this ray touches a straight chain, within a tolerance: the same answer as CollidesWith(GeoRay3, Tolerance).

CollidesWith(GeoPolylineArc3)

Checks whether this ray touches a curved chain: the same answer as CollidesWith(GeoRay3).

CollidesWith(GeoPolylineArc3, Tolerance)

Checks whether this ray touches a curved chain, within a tolerance: the same answer as CollidesWith(GeoRay3, Tolerance).

CollidesWith(GeoRay3)

Checks whether this ray and another touch: the same answer as CollidesWith(GeoRay3, GeoRay3).

CollidesWith(GeoRay3, Tolerance)

Checks whether this ray and another touch, within a tolerance: the same answer as CollidesWith(GeoRay3, GeoRay3, Tolerance).

CollidesWith(GeoSolid3)

Checks whether this ray touches a solid, using the default tolerance.

CollidesWith(GeoSolid3, Tolerance)

Checks whether this ray touches a solid, within a tolerance.

CollidesWith(GeoSphere3)

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

CollidesWith(GeoSphere3, Tolerance)

Determines whether this ray touches a ball, within a tolerance.

CollidesWith(GeoSpline3)

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

CollidesWith(GeoSpline3, Tolerance)

Determines whether this ray touches a spline, within a tolerance.

CollidesWith(GeoTriangle3)

Checks whether this ray runs into a triangle, using the default tolerance.

CollidesWith(GeoTriangle3, Tolerance)

Checks whether this ray runs into a triangle, within a tolerance.

CollidesWith(GeoXLine3)

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

CollidesWith(GeoXLine3, Tolerance)

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

DistanceTo(GeoAabb3)

Calculates the shortest distance between this ray and an axis-aligned box: the answer of DistanceTo(GeoRay3, GeoAabb3).

DistanceTo(GeoAabb3, Tolerance)

Calculates the shortest distance between this ray and an axis-aligned box, within a tolerance: the answer of DistanceTo(GeoRay3, GeoAabb3, Tolerance).

DistanceTo(GeoFace3)

Calculates the shortest distance between this ray and a face: the answer of DistanceTo(GeoRay3, GeoFace3).

DistanceTo(GeoFace3, Tolerance)

Calculates the shortest distance between this ray and a face, within a tolerance: the answer of DistanceTo(GeoRay3, GeoFace3, Tolerance).

DistanceTo(GeoLine3)

Calculates the shortest distance between this ray and a line segment.

DistanceTo(GeoObb3)

Calculates the shortest distance between this ray and an oriented box: the answer of DistanceTo(GeoRay3, GeoObb3).

DistanceTo(GeoObb3, Tolerance)

Calculates the shortest distance between this ray and an oriented box, within a tolerance: the answer of DistanceTo(GeoRay3, GeoObb3, Tolerance).

DistanceTo(GeoPlane3)

Calculates the shortest distance between this ray and a plane: the answer of DistanceTo(GeoRay3, GeoPlane3).

DistanceTo(GeoPlane3, Tolerance)

Calculates the shortest distance between this ray and a plane, within a tolerance: the answer of DistanceTo(GeoRay3, GeoPlane3, Tolerance).

DistanceTo(GeoPoint3)

Calculates the shortest distance from this ray to a point.

DistanceTo(GeoPolygon3)

Calculates the shortest distance between this ray and a polygon: the answer of DistanceTo(GeoRay3, GeoPolygon3).

DistanceTo(GeoPolygon3, Tolerance)

Calculates the shortest distance between this ray and a polygon, within a tolerance: the answer of DistanceTo(GeoRay3, GeoPolygon3, Tolerance).

DistanceTo(GeoPolyline3)

Calculates the shortest distance between this ray and a polyline: the answer of DistanceTo(GeoPolyline3, GeoRay3).

DistanceTo(GeoPolyline3, Tolerance)

Calculates the shortest distance between this ray and a polyline, within a tolerance: the answer of DistanceTo(GeoPolyline3, GeoRay3, Tolerance).

DistanceTo(GeoRay3)

Calculates the shortest distance between this ray and another one: the answer of DistanceTo(GeoRay3, GeoRay3).

DistanceTo(GeoRay3, Tolerance)

Calculates the shortest distance between this ray and another one, within a tolerance: the answer of DistanceTo(GeoRay3, GeoRay3, Tolerance).

DistanceTo(GeoSolid3)

Gets the distance from this ray to a solid, using the default tolerance.

DistanceTo(GeoSolid3, Tolerance)

Gets the distance from this ray to a solid, within a tolerance.

DistanceTo(GeoSphere3)

Calculates the shortest distance from this ray to a ball.

DistanceTo(GeoSpline3)

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

DistanceTo(GeoSpline3, Tolerance)

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

DistanceTo(GeoTriangle3)

Gets the distance from this ray to a triangle, using the default tolerance.

DistanceTo(GeoTriangle3, Tolerance)

Gets the distance from this ray to a triangle, within a tolerance.

DistanceTo(GeoXLine3)

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

DistanceTo(GeoXLine3, Tolerance)

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

Equals(GeoRay3)

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

Equals(object)

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

GetClosestPointOnBoundary(GeoPoint3)

Gets the closest point on this ray to a target point, clamped to the origin.

GetDistanceAtPoint(GeoPoint3)

Gets the distance from the origin to the point on the ray's carrier line closest to the supplied point. The result is negative when that point falls behind the origin.

GetHashCode()

Returns the hash code for this instance.

GetIntersections(GeoAabb3)

Gets every point where this ray crosses the surface of an axis-aligned box, using the default tolerance.

GetIntersections(GeoAabb3, Tolerance)

Gets every point where this ray crosses the surface of an axis-aligned box, within a tolerance.

GetIntersections(GeoArc3)

Gets every point where an arc crosses this ray, using the default tolerance.

GetIntersections(GeoArc3, Tolerance)

Gets every point where an arc crosses this ray, within a tolerance.

GetIntersections(GeoCircle3)

Gets every point where a circle crosses this ray, using the default tolerance.

GetIntersections(GeoCircle3, Tolerance)

Gets every point where a circle crosses this ray, within a tolerance.

GetIntersections(GeoEdge3)

Gets every point where this ray crosses an edge: the same points, in the same order, as GetIntersections(GeoRay3).

GetIntersections(GeoEdge3, Tolerance)

Gets every point where this ray crosses an edge, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, Tolerance).

GetIntersections(GeoFace3)

Gets where this ray crosses the material of a face, as a list: the same points, in the same order, as GetIntersections(GeoRay3, GeoFace3).

GetIntersections(GeoFace3, Tolerance)

Gets where this ray crosses the material of a face, as a list, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, GeoFace3, Tolerance).

GetIntersections(GeoLine3)

Gets where this ray crosses a segment, as a list.

GetIntersections(GeoLine3, Tolerance)

Gets where this ray crosses a segment, as a list, within a tolerance.

GetIntersections(GeoObb3)

Gets every point where this ray crosses the surface of an oriented box, using the default tolerance.

GetIntersections(GeoObb3, Tolerance)

Gets every point where this ray crosses the surface of an oriented box, within a tolerance.

GetIntersections(GeoPlane3)

Gets where this ray crosses a plane, as a list: the same points, in the same order, as GetIntersections(GeoRay3, GeoPlane3).

GetIntersections(GeoPlane3, Tolerance)

Gets where this ray crosses a plane, as a list, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, GeoPlane3, Tolerance).

GetIntersections(GeoPolygon3)

Gets where this ray crosses a polygon, as a list: the same points, in the same order, as GetIntersections(GeoRay3, GeoPolygon3).

GetIntersections(GeoPolygon3, Tolerance)

Gets where this ray crosses a polygon, as a list, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, GeoPolygon3, Tolerance).

GetIntersections(GeoPolygonArc3)

Gets every point where this ray crosses a curved loop: the same points, in the same order, as GetIntersections(GeoRay3).

GetIntersections(GeoPolygonArc3, Tolerance)

Gets every point where this ray crosses a curved loop, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, Tolerance).

GetIntersections(GeoPolyline3)

Gets every point where this ray crosses a straight chain: the same points, in the same order, as GetIntersections(GeoRay3).

GetIntersections(GeoPolyline3, Tolerance)

Gets every point where this ray crosses a straight chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, Tolerance).

GetIntersections(GeoPolylineArc3)

Gets every point where this ray crosses a curved chain: the same points, in the same order, as GetIntersections(GeoRay3).

GetIntersections(GeoPolylineArc3, Tolerance)

Gets every point where this ray crosses a curved chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, Tolerance).

GetIntersections(GeoRay3)

Gets where this ray and another cross, as a list: the same points, in the same order, as GetIntersections(GeoRay3, GeoRay3).

GetIntersections(GeoRay3, Tolerance)

Gets where this ray and another cross, as a list, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, GeoRay3, Tolerance).

GetIntersections(GeoSolid3)

Gets every point where this ray crosses the surface of a solid, using the default tolerance.

GetIntersections(GeoSolid3, Tolerance)

Gets every point where this ray crosses the surface of a solid, within a tolerance.

GetIntersections(GeoSphere3)

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

GetIntersections(GeoSphere3, Tolerance)

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

GetIntersections(GeoSpline3)

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

GetIntersections(GeoSpline3, Tolerance)

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

GetIntersections(GeoTriangle3)

Gets where this ray crosses a triangle, as a list: the same points, in the same order, as GetIntersections(GeoRay3, GeoTriangle3).

GetIntersections(GeoTriangle3, Tolerance)

Gets where this ray crosses a triangle, as a list, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, GeoTriangle3, Tolerance).

GetIntersections(GeoXLine3)

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

GetIntersections(GeoXLine3, Tolerance)

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

GetPointAtDistance(double)

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

GetShortestLineTo(GeoFace3)

Gets the shortest segment joining this ray to a face, using the default tolerance.

GetShortestLineTo(GeoFace3, Tolerance)

Gets the shortest segment joining this ray to a face, within a tolerance.

GetShortestLineTo(GeoLine3)

Gets the shortest segment joining this ray to a segment, using the default tolerance.

GetShortestLineTo(GeoLine3, Tolerance)

Gets the shortest segment joining this ray to a segment, within a tolerance.

GetShortestLineTo(GeoPlane3)

Gets the shortest segment joining this ray to a plane, using the default tolerance.

GetShortestLineTo(GeoPlane3, Tolerance)

Gets the shortest segment joining this ray to a plane, within a tolerance.

GetShortestLineTo(GeoPoint3)

Gets the shortest segment joining this ray to a point, using the default tolerance.

GetShortestLineTo(GeoPoint3, Tolerance)

Gets the shortest segment joining this ray to a point, within a tolerance.

GetShortestLineTo(GeoPolygon3)

Gets the shortest segment joining this ray to a polygon, using the default tolerance.

GetShortestLineTo(GeoPolygon3, Tolerance)

Gets the shortest segment joining this ray to a polygon, within a tolerance.

GetShortestLineTo(GeoPolyline3)

Gets the shortest segment joining this ray to a polyline: GetShortestLineTo(GeoRay3) turned round, so that it leaves this ray and lands on the polyline.

GetShortestLineTo(GeoPolyline3, Tolerance)

Gets the shortest segment joining this ray to a polyline, within a tolerance: GetShortestLineTo(GeoRay3, Tolerance) turned round, so that it leaves this ray and lands on the polyline.

GetShortestLineTo(GeoRay3)

Gets the shortest segment joining this ray to another one, using the default tolerance.

GetShortestLineTo(GeoRay3, Tolerance)

Gets the shortest segment joining this ray to another one, within a tolerance.

GetShortestLineTo(GeoSolid3)

Gets the shortest segment joining this ray to a solid, using the default tolerance.

GetShortestLineTo(GeoSolid3, Tolerance)

Gets the shortest segment joining this ray to a solid, within a tolerance.

GetShortestLineTo(GeoSphere3)

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

GetShortestLineTo(GeoSphere3, Tolerance)

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

GetShortestLineTo(GeoSpline3)

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

GetShortestLineTo(GeoSpline3, Tolerance)

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

GetShortestLineTo(GeoTriangle3)

Gets the shortest segment joining this ray to a triangle, using the default tolerance.

GetShortestLineTo(GeoTriangle3, Tolerance)

Gets the shortest segment joining this ray to a triangle, within a tolerance.

GetShortestLineTo(GeoXLine3)

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

GetShortestLineTo(GeoXLine3, Tolerance)

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

IsEqualTo(GeoRay3)

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

IsEqualTo(GeoRay3, Tolerance)

Compares whether this ray equals another ray within a tolerance.

IsParallelTo(GeoLine3)

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

IsParallelTo(GeoLine3, Tolerance)

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

IsParallelTo(GeoPlane3)

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

IsParallelTo(GeoPlane3, Tolerance)

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

IsPointOn(GeoPoint3)

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

IsPointOn(GeoPoint3, Tolerance)

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

Locate(GeoPoint3)

Says where a point lies with respect to this ray.

Locate(GeoPoint3, Tolerance)

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

ProjectToRay2(GeoCoordinateSystem3)

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

Reverse()

Gets the ray running the opposite way from the same origin.

ToLine(double)

Gets the line segment covering the ray from its origin out to a given distance.

ToString()

Returns a string that represents the current ray.

ToXLine()

Gets the infinite line this ray lies on: the same origin and direction, with the half behind the origin added.

TransformBy(GeoTransform3)

Applies a transformation to this ray.

Translate(GeoVector3)

Moves the ray by a vector.

TryIntersectWith(GeoArc3, out GeoPoint3[])

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

TryIntersectWith(GeoArc3, out GeoPoint3[], Tolerance)

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

TryIntersectWith(GeoCircle3, out GeoPoint3[])

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

TryIntersectWith(GeoCircle3, out GeoPoint3[], Tolerance)

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

TryIntersectWith(GeoEdge3, out GeoPoint3[])

Tries to find where this ray crosses an edge: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).

TryIntersectWith(GeoEdge3, out GeoPoint3[], Tolerance)

Tries to find where this ray crosses an edge, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).

TryIntersectWith(GeoFace3, out GeoPoint3)

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

TryIntersectWith(GeoFace3, out GeoPoint3, Tolerance)

Tries to find the point where this ray crosses a face, within a tolerance: the first point GetIntersections(GeoFace3, Tolerance) gives, and false where it gives none.

TryIntersectWith(GeoLine3, out GeoPoint3[])

Tries to find where this ray crosses a segment.

TryIntersectWith(GeoLine3, out GeoPoint3[], Tolerance)

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

TryIntersectWith(GeoPlane3, out GeoPoint3)

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

TryIntersectWith(GeoPlane3, out GeoPoint3, Tolerance)

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

TryIntersectWith(GeoPolygon3, out GeoPoint3)

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

TryIntersectWith(GeoPolygon3, out GeoPoint3, Tolerance)

Tries to find the point where this ray crosses a polygon, within a tolerance: the first point GetIntersections(GeoPolygon3, Tolerance) gives, and false where it gives none.

TryIntersectWith(GeoPolygonArc3, out GeoPoint3[])

Tries to find where this ray crosses a curved loop: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).

TryIntersectWith(GeoPolygonArc3, out GeoPoint3[], Tolerance)

Tries to find where this ray crosses a curved loop, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).

TryIntersectWith(GeoPolyline3, out GeoPoint3[])

Tries to find where this ray crosses a straight chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).

TryIntersectWith(GeoPolyline3, out GeoPoint3[], Tolerance)

Tries to find where this ray crosses a straight chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).

TryIntersectWith(GeoPolylineArc3, out GeoPoint3[])

Tries to find where this ray crosses a curved chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).

TryIntersectWith(GeoPolylineArc3, out GeoPoint3[], Tolerance)

Tries to find where this ray crosses a curved chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).

TryIntersectWith(GeoRay3, out GeoPoint3[])

Tries to find where this ray and another cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, GeoRay3, out GeoPoint3[]).

TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance)

Tries to find where this ray and another cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, GeoRay3, out GeoPoint3[], Tolerance).

TryIntersectWith(GeoSphere3, out GeoPoint3[])

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

TryIntersectWith(GeoSphere3, out GeoPoint3[], Tolerance)

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

TryIntersectWith(GeoSpline3, out GeoPoint3[])

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

TryIntersectWith(GeoSpline3, out GeoPoint3[], Tolerance)

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

TryIntersectWith(GeoTriangle3, out GeoPoint3)

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

TryIntersectWith(GeoTriangle3, out GeoPoint3, Tolerance)

Tries to find the point where this ray crosses a triangle, within a tolerance: the first point GetIntersections(GeoTriangle3, Tolerance) gives, and false where it gives none.

TryIntersectWith(GeoXLine3, out GeoPoint3[])

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

TryIntersectWith(GeoXLine3, out GeoPoint3[], Tolerance)

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

Operators

operator ==(GeoRay3, GeoRay3)

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

operator !=(GeoRay3, GeoRay3)

Checks if two rays differ in origin or direction.