Struct GeoEllipse3
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Whether the rim of an ellipse in space touches another shape.
public readonly struct GeoEllipse3 : IEquatable<GeoEllipse3>
- Implements
- Inherited Members
- Extension Methods
Constructors
- GeoEllipse3(GeoPoint3, GeoVector3, GeoVector3, double, double)
Initializes an ellipse in space from its centre, the normal of its plane, the direction of its major axis and its two radii.
Properties
- Area
Gets the area of the disc, π a b: an ellipse 300 by 100 encloses 94 247.8.
- Center
Gets the centre of the ellipse.
- Eccentricity
Gets the eccentricity of the ellipse, the root of 1 - b²/a²: nought for a circle, nearer one the thinner it is; an ellipse 300 by 100 has 0.943.
- IsValid
Gets whether this is a shape a constructor could have made: the centre a valid point, both radii positive numbers with the major no less than the minor, and the normal and the axis finite vectors of unit length, square to each other.
- Length
Gets the length of the rim, the perimeter: an ellipse 300 by 100 measures 1 336.489 round.
- MajorAxis
Gets the direction of the major axis, of unit length and square to the normal. The eccentric angle starts at the end of the major axis this points to.
- MajorRadius
Gets the major radius a: half the length of the major axis, never less than the minor radius.
- MinorAxis
Gets the direction of the minor axis: the normal crossed with the major axis, the major axis turned a quarter counter-clockwise about the normal.
- MinorRadius
Gets the minor radius b: half the length of the minor axis, above nought.
- Normal
Gets the unit normal of the plane carrying the ellipse. The eccentric angle runs counter-clockwise seen from its tip.
Methods
- Clone()
Creates a copy of this ellipse.
- CollidesWith(GeoAabb3)
Checks whether the rim of this ellipse touches an axis-aligned box, using the default tolerance.
- CollidesWith(GeoAabb3, Tolerance)
Checks whether the rim of this ellipse touches an axis-aligned box, within a tolerance.
- CollidesWith(GeoArc3)
Checks whether the rim of this ellipse touches an arc, using the default tolerance.
- CollidesWith(GeoArc3, Tolerance)
Checks whether the rim of this ellipse touches an arc, within a tolerance.
- CollidesWith(GeoCircle3)
Checks whether the rim of this ellipse touches a circle, using the default tolerance.
- CollidesWith(GeoCircle3, Tolerance)
Checks whether the rim of this ellipse touches a circle, within a tolerance.
- CollidesWith(GeoEdge3)
Checks whether the rim of this ellipse touches an edge, using the default tolerance.
- CollidesWith(GeoEdge3, Tolerance)
Checks whether the rim of this ellipse touches an edge, within a tolerance.
- CollidesWith(GeoEllipse3)
Checks whether the rim of this ellipse touches another ellipse, using the default tolerance.
- CollidesWith(GeoEllipse3, Tolerance)
Checks whether the rim of this ellipse touches another ellipse, within a tolerance.
- CollidesWith(GeoFace3)
Checks whether the rim of this ellipse touches a face, using the default tolerance.
- CollidesWith(GeoFace3, Tolerance)
Checks whether the rim of this ellipse touches a face, within a tolerance.
- CollidesWith(GeoLine3)
Checks whether the rim of this ellipse touches a segment, using the default tolerance.
- CollidesWith(GeoLine3, Tolerance)
Checks whether the rim of this ellipse touches a segment, within a tolerance.
- CollidesWith(GeoObb3)
Checks whether the rim of this ellipse touches an oriented box, using the default tolerance.
- CollidesWith(GeoObb3, Tolerance)
Checks whether the rim of this ellipse touches an oriented box, within a tolerance.
- CollidesWith(GeoPlane3)
Checks whether the rim of this ellipse touches a plane, using the default tolerance.
- CollidesWith(GeoPlane3, Tolerance)
Checks whether the rim of this ellipse touches a plane, within a tolerance.
- CollidesWith(GeoPolygon3)
Checks whether the rim of this ellipse touches a polygon, using the default tolerance.
- CollidesWith(GeoPolygon3, Tolerance)
Checks whether the rim of this ellipse touches a polygon, within a tolerance.
- CollidesWith(GeoPolygonArc3)
Checks whether the rim of this ellipse touches a curved loop, using the default tolerance.
- CollidesWith(GeoPolygonArc3, Tolerance)
Checks whether the rim of this ellipse touches a curved loop, within a tolerance.
- CollidesWith(GeoPolylineArc3)
Checks whether the rim of this ellipse touches a curved chain, using the default tolerance.
- CollidesWith(GeoPolylineArc3, Tolerance)
Checks whether the rim of this ellipse touches a curved chain, within a tolerance.
- CollidesWith(GeoRay3)
Checks whether the rim of this ellipse touches a ray, using the default tolerance.
- CollidesWith(GeoRay3, Tolerance)
Checks whether the rim of this ellipse touches a ray, within a tolerance.
- CollidesWith(GeoSolid3)
Checks whether the rim of this ellipse touches a solid, using the default tolerance.
- CollidesWith(GeoSolid3, Tolerance)
Checks whether the rim of this ellipse touches a solid, within a tolerance.
- CollidesWith(GeoSphere3)
Determines whether this ellipse touches a ball, using the default tolerance.
- CollidesWith(GeoSphere3, Tolerance)
Determines whether this ellipse touches a ball, within a tolerance.
- CollidesWith(GeoSpline3)
Determines whether this ellipse touches a spline, using the default tolerance.
- CollidesWith(GeoSpline3, Tolerance)
Determines whether this ellipse touches a spline, within a tolerance.
- CollidesWith(GeoTriangle3)
Checks whether the rim of this ellipse touches a triangle, using the default tolerance.
- CollidesWith(GeoTriangle3, Tolerance)
Checks whether the rim of this ellipse touches a triangle, within a tolerance.
- CollidesWith(GeoXLine3)
Determines whether the rim of this ellipse touches an infinite line, using the default tolerance.
- CollidesWith(GeoXLine3, Tolerance)
Determines whether the rim of this ellipse touches an infinite line, within a tolerance.
- Contains(GeoPoint3)
Checks whether this disc holds a point, using the default tolerance.
- Contains(GeoPoint3, Tolerance)
Checks whether this disc holds a point, within a tolerance; a point on the rim is held.
- DistanceTo(GeoPoint3)
Calculates the shortest distance from this disc to a point.
- DistanceTo(GeoSphere3)
Calculates the shortest distance from this ellipse to a ball, using the default tolerance.
- DistanceTo(GeoSphere3, Tolerance)
Calculates the shortest distance from this ellipse to a ball, within a tolerance.
- DistanceTo(GeoSpline3)
Calculates the shortest distance from this ellipse to a spline, using the default tolerance.
- DistanceTo(GeoSpline3, Tolerance)
Calculates the shortest distance from this ellipse to a spline, within a tolerance.
- Equals(GeoEllipse3)
Indicates whether the current ellipse holds exactly the same centre, normal, axis and radii as another.
- Equals(object)
Indicates whether this instance and a specified object are equal.
- FromCircle(GeoCircle3)
Creates the ellipse that is a circle in space: both radii the circle's, the normal the circle's, and the major axis where the circle's angle starts, so that the eccentric angle is the circle's angle.
- GetAabb()
Gets the axis-aligned bounding box enclosing this ellipse, exactly: an ellipse 300 by 100 in the plan with its major axis along X reaches 300 either way along X, 100 along Y and nothing along Z.
- GetAngleAtPoint(GeoPoint3)
Gets the eccentric angle of the point of the rim nearest a point, from nought up to a full turn; not the direction seen from the centre. A point off the plane is read at its foot on it.
- GetClosestPointOnBoundary(GeoPoint3)
Gets the point on the rim closest to a target point: the point of the rim nearest the target's foot on the plane, since every point of the rim stands as high above the target's foot as the target does.
- GetClosestPointOnSurface(GeoPoint3)
Gets the point of this disc closest to a target point, read as a filled surface: the foot of the point on the plane where it lies within the rim, and the nearest point of the rim where it does not.
- GetDistanceAtParameter(double)
Gets the true length along the rim from the end of the major axis to a normalized parameter, which wraps as a circle's does; 0.25 is exactly a quarter of the perimeter, though the parameter is uniform in the eccentric angle and not in length.
- GetDistanceAtPoint(GeoPoint3)
Gets the true length along the rim from the end of the major axis to the point of the rim nearest a point.
- GetDistanceAtPoint(GeoPoint3, Tolerance)
Gets the true length along the rim from the end of the major axis to the point of the rim nearest a point, within a tolerance: a point whose foot lies within the vector tolerance of the centre is read at the centre, which gives a quarter of the perimeter.
- GetHashCode()
Returns the hash code for this instance.
- GetIntersections(GeoAabb3)
Gets every point where the rim of this ellipse crosses the surface of an axis-aligned box, using the default tolerance.
- GetIntersections(GeoAabb3, Tolerance)
Gets every point where the rim of this ellipse crosses the surface of an axis-aligned box, within a tolerance.
- GetIntersections(GeoArc3)
Gets every point where the rim of this ellipse crosses an arc, using the default tolerance.
- GetIntersections(GeoArc3, Tolerance)
Gets every point where the rim of this ellipse crosses an arc, within a tolerance.
- GetIntersections(GeoCircle3)
Gets every point where the rim of this ellipse crosses a circle, using the default tolerance.
- GetIntersections(GeoCircle3, Tolerance)
Gets every point where the rim of this ellipse crosses a circle, within a tolerance.
- GetIntersections(GeoEdge3)
Gets every point where the rim of this ellipse crosses an edge, using the default tolerance.
- GetIntersections(GeoEdge3, Tolerance)
Gets every point where the rim of this ellipse crosses an edge, within a tolerance.
- GetIntersections(GeoEllipse3)
Gets every point where the rim of this ellipse crosses another ellipse, using the default tolerance.
- GetIntersections(GeoEllipse3, Tolerance)
Gets every point where the rim of this ellipse crosses another ellipse, within a tolerance.
- GetIntersections(GeoFace3)
Gets every point where the rim of this ellipse crosses a face, using the default tolerance.
- GetIntersections(GeoFace3, Tolerance)
Gets every point where the rim of this ellipse crosses a face, within a tolerance.
- GetIntersections(GeoLine3)
Gets every point where the rim of this ellipse crosses a segment, using the default tolerance.
- GetIntersections(GeoLine3, Tolerance)
Gets every point where the rim of this ellipse crosses a segment, within a tolerance.
- GetIntersections(GeoObb3)
Gets every point where the rim of this ellipse crosses the surface of an oriented box, using the default tolerance.
- GetIntersections(GeoObb3, Tolerance)
Gets every point where the rim of this ellipse crosses the surface of an oriented box, within a tolerance.
- GetIntersections(GeoPlane3)
Gets every point where the rim of this ellipse crosses a plane, using the default tolerance.
- GetIntersections(GeoPlane3, Tolerance)
Gets every point where the rim of this ellipse crosses a plane, within a tolerance.
- GetIntersections(GeoPolygon3)
Gets every point where the rim of this ellipse crosses a polygon, using the default tolerance.
- GetIntersections(GeoPolygon3, Tolerance)
Gets every point where the rim of this ellipse crosses a polygon, within a tolerance.
- GetIntersections(GeoPolygonArc3)
Gets every point where the rim of this ellipse crosses a curved loop, using the default tolerance.
- GetIntersections(GeoPolygonArc3, Tolerance)
Gets every point where the rim of this ellipse crosses a curved loop, within a tolerance.
- GetIntersections(GeoPolylineArc3)
Gets every point where the rim of this ellipse crosses a curved chain, using the default tolerance.
- GetIntersections(GeoPolylineArc3, Tolerance)
Gets every point where the rim of this ellipse crosses a curved chain, within a tolerance.
- GetIntersections(GeoRay3)
Gets every point where the rim of this ellipse crosses a ray, using the default tolerance.
- GetIntersections(GeoRay3, Tolerance)
Gets every point where the rim of this ellipse crosses a ray, within a tolerance.
- GetIntersections(GeoSolid3)
Gets every point where the rim of this ellipse crosses the surface of a solid, using the default tolerance.
- GetIntersections(GeoSolid3, Tolerance)
Gets every point where the rim of this ellipse crosses the surface of a solid, within a tolerance.
- GetIntersections(GeoSphere3)
Gets the points where this ellipse crosses the surface of a ball, using the default tolerance.
- GetIntersections(GeoSphere3, Tolerance)
Gets the points where this ellipse crosses the surface of a ball, within a tolerance.
- GetIntersections(GeoSpline3)
Gets the points where this ellipse meets a spline, using the default tolerance.
- GetIntersections(GeoSpline3, Tolerance)
Gets the points where this ellipse meets a spline, within a tolerance.
- GetIntersections(GeoTriangle3)
Gets every point where the rim of this ellipse crosses a triangle, using the default tolerance.
- GetIntersections(GeoTriangle3, Tolerance)
Gets every point where the rim of this ellipse crosses a triangle, within a tolerance.
- GetIntersections(GeoXLine3)
Gets the points where the rim of this ellipse crosses an infinite line, using the default tolerance.
- GetIntersections(GeoXLine3, Tolerance)
Gets the points where the rim of this ellipse crosses an infinite line, within a tolerance.
- GetParameterAtDistance(double)
Gets the normalized parameter at a true length along the rim from the end of the major axis; the length wraps, as a circle's does.
- GetParameterAtPoint(GeoPoint3)
Gets the normalized parameter of the point of the rim nearest a point: its eccentric angle as a share of a turn.
- GetParameterAtPoint(GeoPoint3, Tolerance)
Gets the normalized parameter of the point of the rim nearest a point, within a tolerance: a point whose foot lies within the vector tolerance of the centre is read at the centre, which gives 0.25.
- GetPlane()
Gets the plane carrying the ellipse, through its centre along its normal.
- GetPointAtAngle(double)
Gets the point of the rim at an eccentric angle t, counter-clockwise about the normal from the end of the major axis; not the direction seen from the centre. On an ellipse 300 by 100, t = 45° is the point 212.1 along the major axis and 70.7 along the minor, which lies 18.4° from the axis seen from the centre.
- GetPointAtDistance(double)
Gets the point at a true length along the rim from the end of the major axis; the length wraps.
- GetPointAtParameter(double)
Gets the point at a normalized parameter along the rim, uniform in the eccentric angle: p is t = 2πp, 0 the end of the major axis and 1 the same point after a whole turn. The parameter wraps, so 1.25 gives the same point as 0.25.
- GetShortestLineTo(GeoPoint3)
Gets the shortest segment joining this ellipse to a point, using the default tolerance.
- GetShortestLineTo(GeoPoint3, Tolerance)
Gets the shortest segment joining this ellipse to a point, within a tolerance.
- GetShortestLineTo(GeoSphere3)
Gets the shortest segment leaving this ellipse and landing on a ball, using the default tolerance.
- GetShortestLineTo(GeoSphere3, Tolerance)
Gets the shortest segment leaving this ellipse and landing on a ball, within a tolerance.
- GetShortestLineTo(GeoSpline3)
Gets the shortest segment leaving this ellipse and landing on a spline, using the default tolerance.
- GetShortestLineTo(GeoSpline3, Tolerance)
Gets the shortest segment leaving this ellipse and landing on a spline, within a tolerance.
- IsCircle()
Determines whether this ellipse is a circle, its two radii the same within the default tolerance.
- IsCircle(Tolerance)
Determines whether this ellipse is a circle, its two radii the same within the point tolerance.
- IsEqualTo(GeoEllipse3)
Determines whether another ellipse is the same shape in the same place, within the default tolerance.
- IsEqualTo(GeoEllipse3, Tolerance)
Determines whether another ellipse is the same shape in the same place, within a tolerance: the centres and both radii within the point tolerance, the normals the same way within the vector tolerance, as a circle's are, and the major axes along the same line, either way round, within the vector tolerance. Two circles are not asked about their axes.
- IsPointOn(GeoPoint3)
Checks whether a point lies on the rim, using the default tolerance.
- IsPointOn(GeoPoint3, Tolerance)
Checks whether a point lies on the rim, within a tolerance.
- Locate(GeoPoint3)
Locates a point relative to this disc, using the default tolerance.
- Locate(GeoPoint3, Tolerance)
Locates a point relative to this disc, within a tolerance: outside when it stands off the plane by more than the planar tolerance, and otherwise as its foot lies to the rim, on it within the point tolerance.
- ProjectToEllipse2(GeoCoordinateSystem3)
Lays this ellipse out in the plane of a frame, projecting it square onto that plane.
- ProjectToPlane(GeoPlane3)
Gets the ellipse seen square onto a plane: every point of this one projected along the plane's normal. A circle of radius 300 tilted 60° from the plan is, in the plan, an ellipse 300 by 150.
- ToMesh(MeshKind)
Breaks the disc into faces of a kind, its grid level, using the default tolerance. A grid needs the size of its cells, which ToMesh(MeshOptions) takes.
- ToMesh(MeshOptions)
Breaks the disc into faces as the options say, its grid level, with the second axis up the slope, using the default tolerance.
- ToMesh(MeshOptions, MeshPlacement3)
Breaks the disc into faces as the options say, its grid standing as the placement says, using the default tolerance.
- ToMesh(MeshOptions, MeshPlacement3, Tolerance)
Breaks the disc into faces as the options say, its grid standing as the placement says, within a tolerance: triangles, the cells of a grid, strips or convex pieces, each a simple polygon with no hole, counter-clockwise about the normal, meeting its neighbours edge to edge.
- ToMesh(MeshOptions, Tolerance)
Breaks the disc into faces as the options say, its grid level, with the second axis up the slope, within a tolerance.
- ToPolygon()
Approximates the rim as a polygon, cut finely enough that it strays no further from the rim than GeometryHelper.Internal.Tessellation.AutomaticChordRatio of the minor radius.
- ToPolygon(int)
Approximates the rim as a polygon with a given number of edges, its corners evenly spread in the eccentric angle.
- ToPolygonByChordTolerance(double)
Approximates the rim as a polygon that strays no further from it than a chord tolerance, its corners spaced by how sharply the rim bends, symmetric about both axes with a corner at each end of each.
- ToPolygonBySpacing(double)
Approximates the rim as a polygon whose corners are evenly spread along it, no two further apart along the rim than a spacing.
- ToPolyline()
Approximates the rim as a chain, cut by the automatic chord tolerance.
- ToPolyline(int)
Approximates the rim as a chain with a given number of pieces, evenly spread in the eccentric angle.
- ToPolylineByChordTolerance(double)
Approximates the rim as a chain that strays no further from it than a chord tolerance.
- ToPolylineBySpacing(double)
Approximates the rim as a chain whose points are no further apart along it than a spacing.
- ToString()
Returns the string representation of the ellipse.
- TransformBy(GeoTransform3)
Applies a transformation to this ellipse. Every transformation that does not flatten its plane gives an ellipse, an uneven scaling and a shear among them.
- Translate(GeoVector3)
Moves the ellipse by a vector, keeping its normal, its axis and its radii exactly.
- TryIntersectWith(GeoAabb3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses the surface of an axis-aligned box, using the default tolerance.
- TryIntersectWith(GeoAabb3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses the surface of an axis-aligned box, within a tolerance.
- TryIntersectWith(GeoArc3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses an arc, using the default tolerance.
- TryIntersectWith(GeoArc3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses an arc, within a tolerance.
- TryIntersectWith(GeoCircle3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses a circle, using the default tolerance.
- TryIntersectWith(GeoCircle3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses a circle, within a tolerance.
- TryIntersectWith(GeoEdge3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses an edge, using the default tolerance.
- TryIntersectWith(GeoEdge3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses an edge, within a tolerance.
- TryIntersectWith(GeoEllipse3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses another ellipse, using the default tolerance.
- TryIntersectWith(GeoEllipse3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses another ellipse, within a tolerance.
- TryIntersectWith(GeoFace3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses a face, using the default tolerance.
- TryIntersectWith(GeoFace3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses a face, within a tolerance.
- TryIntersectWith(GeoLine3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses a segment, using the default tolerance.
- TryIntersectWith(GeoLine3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses a segment, within a tolerance.
- TryIntersectWith(GeoObb3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses the surface of an oriented box, using the default tolerance.
- TryIntersectWith(GeoObb3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses the surface of an oriented box, within a tolerance.
- TryIntersectWith(GeoPlane3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses a plane, using the default tolerance.
- TryIntersectWith(GeoPlane3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses a plane, within a tolerance.
- TryIntersectWith(GeoPolygon3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses a polygon, using the default tolerance.
- TryIntersectWith(GeoPolygon3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses a polygon, within a tolerance.
- TryIntersectWith(GeoRay3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses a ray, using the default tolerance.
- TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses a ray, within a tolerance.
- TryIntersectWith(GeoSolid3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses the surface of a solid, using the default tolerance.
- TryIntersectWith(GeoSolid3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses the surface of a solid, within a tolerance.
- TryIntersectWith(GeoSphere3, out GeoPoint3[])
Tries to find where this ellipse crosses the surface of a ball, using the default tolerance.
- TryIntersectWith(GeoSphere3, out GeoPoint3[], Tolerance)
Tries to find where this ellipse crosses the surface of a ball, within a tolerance.
- TryIntersectWith(GeoSpline3, out GeoPoint3[])
Tries to find where this ellipse meets a spline, using the default tolerance.
- TryIntersectWith(GeoSpline3, out GeoPoint3[], Tolerance)
Tries to find where this ellipse meets a spline, within a tolerance.
- TryIntersectWith(GeoTriangle3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses a triangle, using the default tolerance.
- TryIntersectWith(GeoTriangle3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses a triangle, within a tolerance.
- TryIntersectWith(GeoXLine3, out GeoPoint3[])
Tries to find where the rim of this ellipse crosses an infinite line, using the default tolerance.
- TryIntersectWith(GeoXLine3, out GeoPoint3[], Tolerance)
Tries to find where the rim of this ellipse crosses an infinite line, within a tolerance.
Operators
- operator ==(GeoEllipse3, GeoEllipse3)
Compares two GeoEllipse3 instances for equality.
- operator !=(GeoEllipse3, GeoEllipse3)
Compares two GeoEllipse3 instances for inequality.